Sha256: 6a1676f2b9b4e3cacdd1c16ec2ea953f47b0e1b4d63fed1b74264817568ac24f

Contents?: true

Size: 498 Bytes

Versions: 17

Compression:

Stored size: 498 Bytes

Contents

module Locomotive
  class MyAccountController < BaseController

    sections 'settings', 'account'

    respond_to :json, :only => :update

    helper 'Locomotive::Accounts'

    skip_load_and_authorize_resource

    def edit
      @account = current_locomotive_account
      respond_with @account
    end

    def update
      @account = current_locomotive_account
      @account.update_attributes(params[:account])
      respond_with @account, :location => edit_my_account_url
    end

  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
locomotive_cms-2.0.3 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.2 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.1 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0 app/controllers/locomotive/my_account_controller.rb
tribeca_cms-0.1.1 app/controllers/locomotive/my_account_controller.rb
tribeca_cms-2.0.0.rc12 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc12 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc11 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc10 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc9 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc8 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc7 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc6 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc5 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc4 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc2 app/controllers/locomotive/my_account_controller.rb
locomotive_cms-2.0.0.rc1 app/controllers/locomotive/my_account_controller.rb