Class: Comable::Admin::StoreController
Instance Method Summary
collapse
#current_ability, #respond_to_export_with
Instance Method Details
#edit ⇒ Object
14
15
|
# File 'app/controllers/comable/admin/store_controller.rb', line 14
def edit
end
|
#show ⇒ Object
10
11
12
|
# File 'app/controllers/comable/admin/store_controller.rb', line 10
def show
render :edit
end
|
#update ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'app/controllers/comable/admin/store_controller.rb', line 17
def update
if @store.update_attributes(store_params)
redirect_to comable.admin_store_url, notice: Comable.t('successful')
else
flash.now[:alert] = Comable.t('failure')
render :edit
end
end
|