Module: Resources::RestActions

Extended by:
ActiveSupport::Concern
Defined in:
lib/resources/rest_actions.rb

Instance Method Summary collapse

Instance Method Details

#createObject



28
29
30
# File 'lib/resources/rest_actions.rb', line 28

def create
  save_resource
end

#destroyObject



43
44
45
# File 'lib/resources/rest_actions.rb', line 43

def destroy
  destroy_resource
end

#editObject



32
33
34
# File 'lib/resources/rest_actions.rb', line 32

def edit

end

#indexObject



20
21
22
# File 'lib/resources/rest_actions.rb', line 20

def index

end

#newObject



24
25
26
# File 'lib/resources/rest_actions.rb', line 24

def new

end

#showObject



36
37
# File 'lib/resources/rest_actions.rb', line 36

def show
end

#updateObject



39
40
41
# File 'lib/resources/rest_actions.rb', line 39

def update
  save_resource
end