Class GenericRestController
In: app/controllers/generic_rest_controller.rb
Parent: ApplicationController

Methods

Protected Instance methods

[Source]

    # File app/controllers/generic_rest_controller.rb, line 31
31:   def can_create?
32:     resource_class.permits_create?
33:   end

[Source]

    # File app/controllers/generic_rest_controller.rb, line 39
39:   def can_delete?( obj )
40:     obj.permits_action?( :destroy )
41:   end

[Source]

    # File app/controllers/generic_rest_controller.rb, line 35
35:   def can_edit?( obj )
36:     obj.permits_action?( :update )
37:   end

[Validate]