Module: RestfulController::Helpers::ClassMethods

Defined in:
lib/restful_controller/helpers.rb

Instance Method Summary collapse

Instance Method Details

#model_classObject



14
15
16
# File 'lib/restful_controller/helpers.rb', line 14

def model_class
  controller_name.classify.constantize
end

#model_nameObject



10
11
12
# File 'lib/restful_controller/helpers.rb', line 10

def model_name
  controller_name.classify.downcase
end