Class: Curate::CollectionsController::CollectionsControllerResource
- Inherits:
-
CanCan::ControllerResource
- Object
- CanCan::ControllerResource
- Curate::CollectionsController::CollectionsControllerResource
- Defined in:
- app/controllers/curate/collections_controller.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ CollectionsControllerResource
constructor
A new instance of CollectionsControllerResource.
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 |