Module: RequestMethods::ClassMethods
- Included in:
- KalibroGem::Entities::Model
- Defined in:
- lib/kalibro_gem/helpers/request_methods.rb
Instance Method Summary collapse
Instance Method Details
#exists_action ⇒ Object
35 36 37 |
# File 'lib/kalibro_gem/helpers/request_methods.rb', line 35 def exists_action "#{class_name.underscore}_exists".to_sym end |
#find_action ⇒ Object
43 44 45 |
# File 'lib/kalibro_gem/helpers/request_methods.rb', line 43 def find_action "get_#{class_name.underscore}".to_sym end |
#id_params(id) ⇒ Object
39 40 41 |
# File 'lib/kalibro_gem/helpers/request_methods.rb', line 39 def id_params(id) {"#{class_name.underscore}_id".to_sym => id} end |