Module: RecordsControllerBehavior::ClassMethods

Defined in:
app/controllers/concerns/records_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#cancan_resource_classObject



15
16
17
# File 'app/controllers/concerns/records_controller_behavior.rb', line 15

def cancan_resource_class
  HydraEditor::ControllerResource
end

#resource_instance_nameObject



18
19
20
# File 'app/controllers/concerns/records_controller_behavior.rb', line 18

def resource_instance_name
  name.sub('Controller', '').underscore.split('/').last.singularize
end