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

Instance Method Details

#showObject



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

def show
  render :edit
end

#updateObject



14
15
16
17
18
19
20
21
# File 'app/controllers/comable/admin/store_controller.rb', line 14

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