Sha256: 0858649048199736d60a088bb3906b778a60c236075917b4654bd583ce8b952e

Contents?: true

Size: 1016 Bytes

Versions: 28

Compression:

Stored size: 1016 Bytes

Contents

module MyForum
  class Engine < ::Rails::Engine
    isolate_namespace MyForum

    require 'jquery-rails'
    require 'bootstrap-sass'

    config.generators do |g|
      g.test_framework      :rspec,        :fixture => false
      g.assets false
      g.helper false
    end

    USE_CUSTOM_USER_MODEL       = false
    CUSTOM_USER_CLASS           = 'User'
    CUSTOM_USER_LOGIN_ATTR      = 'login'
    CUSTOM_USER_PASSWORD_ATTR   = 'password'
    CUSTOM_AUTHENTICATE_METHOD  = 'users#authenticate'

    attr_accessor :use_custom_user_model, :custom_user_class, :custom_user_login_attr, :custom_user_password_attr,
                  :custom_authenticate_method

    def initialize
      self.use_custom_user_model      = USE_CUSTOM_USER_MODEL
      self.custom_user_class          = CUSTOM_USER_CLASS
      self.custom_user_login_attr     = CUSTOM_USER_LOGIN_ATTR
      self.custom_user_password_attr  = CUSTOM_USER_PASSWORD_ATTR
      self.custom_authenticate_method = CUSTOM_AUTHENTICATE_METHOD
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
my_forum-0.0.1.beta31 lib/my_forum/engine.rb
my_forum-0.0.1.beta30 lib/my_forum/engine.rb
my_forum-0.0.1.beta29 lib/my_forum/engine.rb
my_forum-0.0.1.beta28 lib/my_forum/engine.rb
my_forum-0.0.1.beta27 lib/my_forum/engine.rb
my_forum-0.0.1.beta26 lib/my_forum/engine.rb
my_forum-0.0.1.beta25 lib/my_forum/engine.rb
my_forum-0.0.1.beta24 lib/my_forum/engine.rb
my_forum-0.0.1.beta23 lib/my_forum/engine.rb
my_forum-0.0.1.beta22 lib/my_forum/engine.rb
my_forum-0.0.1.beta21 lib/my_forum/engine.rb
my_forum-0.0.1.beta20 lib/my_forum/engine.rb
my_forum-0.0.1.beta19 lib/my_forum/engine.rb
my_forum-0.0.1.beta18 lib/my_forum/engine.rb
my_forum-0.0.1.beta17 lib/my_forum/engine.rb
my_forum-0.0.1.beta16 lib/my_forum/engine.rb
my_forum-0.0.1.beta15 lib/my_forum/engine.rb
my_forum-0.0.1.beta14 lib/my_forum/engine.rb
my_forum-0.0.1.beta13 lib/my_forum/engine.rb
my_forum-0.0.1.beta12 lib/my_forum/engine.rb