Class: RewardsController
Instance Method Summary
collapse
#display_uservoice_sso, #render_facebook_like, #render_facebook_sdk, #render_twitter
Instance Method Details
#create ⇒ Object
23
24
25
|
# File 'app/controllers/rewards_controller.rb', line 23
def create
create! { project_by_slug_path(permalink: parent.permalink) }
end
|
#destroy ⇒ Object
27
28
29
|
# File 'app/controllers/rewards_controller.rb', line 27
def destroy
destroy! { project_by_slug_path(permalink: resource.project.permalink) }
end
|
#edit ⇒ Object
15
16
17
|
# File 'app/controllers/rewards_controller.rb', line 15
def edit
render layout: false
end
|
#index ⇒ Object
7
8
9
|
# File 'app/controllers/rewards_controller.rb', line 7
def index
render layout: false
end
|
#new ⇒ Object
11
12
13
|
# File 'app/controllers/rewards_controller.rb', line 11
def new
render layout: false
end
|
#sort ⇒ Object
31
32
33
34
35
|
# File 'app/controllers/rewards_controller.rb', line 31
def sort
resource.update_attribute :row_order_position, params[:reward][:row_order_position]
render nothing: true
end
|
#update ⇒ Object
19
20
21
|
# File 'app/controllers/rewards_controller.rb', line 19
def update
update! { project_by_slug_path(permalink: parent.permalink) }
end
|