Sha256: 8e39c31b74677c0bcbb07aa207649e4b603d9c5a4be823e2d21d858d303d3edc

Contents?: true

Size: 1.1 KB

Versions: 56

Compression:

Stored size: 1.1 KB

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/hash_with_indifferent_access'

module Cmor
  module UserArea
    module Configuration
      def configure
        yield self
      end

      mattr_accessor(:enable_registrations) { false }
      mattr_accessor(:allow_users_to_destroy_self) { true }
      mattr_accessor(:base_controller) { 'FrontendController' }
      mattr_accessor(:base_mailer) { 'ApplicationMailer' }
      mattr_accessor(:acts_as_authentic_options) do
        ->(config) do
          config.crypto_provider = Authlogic::CryptoProviders::BCrypt
          config.login_field     = :email
        end
      end
      mattr_accessor(:application_name) { Rails.application.class.name.deconstantize }
      mattr_accessor(:email_from_address) do
        lambda do
          ENV['CMOR_USER_AREA_FROM_ADDRESS'] || 'info@example.com'
        end
      end
      mattr_accessor(:current_user_additional_table_rows_proc) { nil }
      mattr_accessor(:after_sign_in_url) { ->(controller) { main_app.root_path } }
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_user_area-0.0.59.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.58.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.57.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.56.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.55.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.54.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.53.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.52.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.51.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.50.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.49.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.48.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.45.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.44.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.43.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.42.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.41.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.40.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.39.pre lib/cmor/user_area/configuration.rb
cmor_user_area-0.0.38.pre lib/cmor/user_area/configuration.rb