Sha256: 59b9556a3a2c49e8464557a20a790aca9282fae267c31c712b8dba7abef6d496

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

class CustomAccountsController < Bento::AccountsController
  defaults :resource_class => Site, :collection_name => 'sites', :instance_name => 'site'
  skip_before_filter :authenticate_user!, :only => %w[new]

  def new
    flash[:special] = "Welcome to '#{controller_path}' controller!"
    super
  end

  protected

  def after_create_url
    custom_account_path(resource)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bento-0.0.3 spec/rails_app/app/controllers/custom_accounts_controller.rb
bento-0.0.2 spec/rails_app/app/controllers/custom_accounts_controller.rb