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



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

def blacklight_config
  @blacklight_config
end

#current_abilityObject

Returns the value of attribute current_ability

Returns:

  • (Object)

    the current value of current_ability



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

def current_ability
  @current_ability
end

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



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

def repository
  @repository
end

Instance Method Details

#can?(*args) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'app/forms/hyrax/forms/collection_form.rb', line 33

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