Module: Ki::Model::ModelHelper
- Included in:
- Ki::Model
- Defined in:
- lib/ki/modules/model_helper.rb
Instance Method Summary collapse
- #delete? ⇒ Boolean
- #forbidden_actions ⇒ Object
- #get? ⇒ Boolean
- #post? ⇒ Boolean
- #put? ⇒ Boolean
- #required_attributes ⇒ Object
- #skipped_params ⇒ Object
- #unique_attributes ⇒ Object
Instance Method Details
#delete? ⇒ Boolean
16 17 18 |
# File 'lib/ki/modules/model_helper.rb', line 16 def delete? @req.delete? end |
#forbidden_actions ⇒ Object
20 21 22 |
# File 'lib/ki/modules/model_helper.rb', line 20 def forbidden_actions [] end |
#get? ⇒ Boolean
4 5 6 |
# File 'lib/ki/modules/model_helper.rb', line 4 def get? @req.get? end |
#post? ⇒ Boolean
8 9 10 |
# File 'lib/ki/modules/model_helper.rb', line 8 def post? @req.post? end |
#put? ⇒ Boolean
12 13 14 |
# File 'lib/ki/modules/model_helper.rb', line 12 def put? @req.put? end |
#required_attributes ⇒ Object
24 25 26 |
# File 'lib/ki/modules/model_helper.rb', line 24 def required_attributes [] end |
#skipped_params ⇒ Object
28 29 30 |
# File 'lib/ki/modules/model_helper.rb', line 28 def skipped_params [] end |
#unique_attributes ⇒ Object
32 33 34 |
# File 'lib/ki/modules/model_helper.rb', line 32 def unique_attributes [] end |