Class: Curate::CollectionsController::CollectionsControllerResource

Inherits:
CanCan::ControllerResource
  • Object
show all
Defined in:
app/controllers/curate/collections_controller.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CollectionsControllerResource

Returns a new instance of CollectionsControllerResource.



3
4
5
6
7
8
# File 'app/controllers/curate/collections_controller.rb', line 3

def initialize(*args)
  super
  if @controller.params['add_to_profile'].present?
    @options[:class] = 'ProfileSection'
  end
end