Class: Hyrax::Forms::CollectionForm::ProxyScope

Inherits:
Struct
  • Object
show all
Defined in:
app/forms/hyrax/forms/collection_form.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blacklight_configObject

Returns the value of attribute blacklight_config

Returns:

  • (Object)

    the current value of blacklight_config


30
31
32
# File 'app/forms/hyrax/forms/collection_form.rb', line 30

def blacklight_config
  @blacklight_config
end

#current_abilityObject

Returns the value of attribute current_ability

Returns:

  • (Object)

    the current value of current_ability


30
31
32
# File 'app/forms/hyrax/forms/collection_form.rb', line 30

def current_ability
  @current_ability
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository


30
31
32
# File 'app/forms/hyrax/forms/collection_form.rb', line 30

def repository
  @repository
end

Instance Method Details

#can?(*args) ⇒ Boolean

Returns:

  • (Boolean)

31
32
33
# File 'app/forms/hyrax/forms/collection_form.rb', line 31

def can?(*args)
  current_ability.can?(*args)
end