Module: Resources::RestActions

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

Instance Method Summary collapse

Instance Method Details

#createObject



26
27
28
# File 'lib/resources/rest_actions.rb', line 26

def create
  save_resource
end

#destroyObject



41
42
43
# File 'lib/resources/rest_actions.rb', line 41

def destroy
  destroy_resource
end

#editObject



30
31
32
# File 'lib/resources/rest_actions.rb', line 30

def edit

end

#indexObject



18
19
20
# File 'lib/resources/rest_actions.rb', line 18

def index

end

#newObject



22
23
24
# File 'lib/resources/rest_actions.rb', line 22

def new

end

#showObject



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

def show
end

#updateObject



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

def update
  save_resource
end