Class: Comable::Admin::StoreController

Inherits:
ApplicationController show all
Defined in:
app/controllers/comable/admin/store_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_ability, #respond_to_export_with

Instance Method Details

#editObject



14
15
# File 'app/controllers/comable/admin/store_controller.rb', line 14

def edit
end

#showObject



10
11
12
# File 'app/controllers/comable/admin/store_controller.rb', line 10

def show
  render :edit
end

#updateObject



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