Module: Ki::Model::ModelHelper

Included in:
Ki::Model
Defined in:
lib/ki/modules/model_helper.rb

Instance Method Summary collapse

Instance Method Details

#delete?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/ki/modules/model_helper.rb', line 16

def delete?
  @req.delete?
end

#forbidden_actionsObject



20
21
22
# File 'lib/ki/modules/model_helper.rb', line 20

def forbidden_actions
  []
end

#get?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/ki/modules/model_helper.rb', line 4

def get?
  @req.get?
end

#post?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/ki/modules/model_helper.rb', line 8

def post?
  @req.post?
end

#put?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/ki/modules/model_helper.rb', line 12

def put?
  @req.put?
end

#required_attributesObject



24
25
26
# File 'lib/ki/modules/model_helper.rb', line 24

def required_attributes
  []
end

#skipped_paramsObject



28
29
30
# File 'lib/ki/modules/model_helper.rb', line 28

def skipped_params
  []
end

#unique_attributesObject



32
33
34
# File 'lib/ki/modules/model_helper.rb', line 32

def unique_attributes
  []
end