lib/faalis/engine.rb in faalis-1.0.0.alpha0 vs lib/faalis/engine.rb in faalis-1.0.0.alpha1

- old
+ new

@@ -23,10 +23,15 @@ require 'cancan' require 'model_discovery' require 'angularjs-rails' require 'lodash-rails' +# required gettext related gem only in developement +if Rails.env.development? + require 'gettext_i18n_rails' +end + module Faalis # `Engine` class of **Faalis**. class Engine < ::Rails::Engine isolate_namespace Faalis @@ -137,8 +142,24 @@ end # Dashboard default javascript manifest mattr_accessor :dashboard_js_manifest @@dashboard_js_manifest = "controlpanel/application.js" + + # Devise options + # Include default devise modules. Others available are: + # :token_authenticatable, :confirmable, + # :lockable, :timeoutable and :omniauthable + mattr_accessor :devise_options + @@devise_options = [:database_authenticatable, + :registerable, + :recoverable, + :rememberable, + :trackable, + :lockable, + :timeoutable, + :validatable] + + middleware.use Faalis::Middlewares::Locale end end