Sha256: 886d92eac51299e514798b64a6eb1baaf6d5fb26c5b5d0a8bd7b847dbb4f0935

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

module Locomotive
  class AccountsController < BaseController

    sections 'settings'

    def new
      @account = Account.new(email: params[:email])
      respond_with @account
    end

    def create
      @account = Account.create(params[:account])
      current_site.memberships.create(account: @account) if @account.errors.empty?
      respond_with @account, location: edit_current_site_url
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-2.2.2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.2.1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.2.0 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.1.4 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.1.3 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.1.2 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.1.1 app/controllers/locomotive/accounts_controller.rb
locomotive_cms-2.1.0 app/controllers/locomotive/accounts_controller.rb