module Abyme::Controller
Public Instance Methods
abyme_attributes()
click to toggle source
# File lib/abyme/controller.rb, line 3 def abyme_attributes return [] if resource_class.nil? resource_class.abyme_attributes end
Private Instance Methods
resource_class()
click to toggle source
# File lib/abyme/controller.rb, line 11 def resource_class self.class.name.match(/(.*)(Controller)/)[1].singularize.safe_constantize end