Class: Faalis::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/faalis/engine.rb

Overview

Engine class of Faalis.

Constant Summary

@@logger =
Logger.new(STDOUT)
@@dashboard_namespace =
:dashboard
@@site_title =
'Faalis'
@@dashboard_js_manifest =
'dashboard/application.js'
@@devise_options =
[:database_authenticatable,
:registerable,
:recoverable,
:rememberable,
:trackable,
:lockable,
:timeoutable,
:validatable]

Class Method Summary (collapse)

Class Method Details

+ (Object) collect_i18n_missing_keys=(value)

We have to move this method somewhere else



74
75
76
77
78
# File 'lib/faalis/engine.rb', line 74

def self.collect_i18n_missing_keys=(value)
  if value
    ::I18n.exception_handler = Faalis::I18n::MissingKeyHandler.new
  end
end

+ (Object) orm=(orm_name)



63
64
65
66
67
# File 'lib/faalis/engine.rb', line 63

def self.orm=(orm_name)
  @@orm = orm_name
  require "devise/orm/#{orm_name}"
  #require 'mailboxer'
end

+ (Object) setup {|_self| ... }

Yields:

  • (_self)

Yield Parameters:



69
70
71
# File 'lib/faalis/engine.rb', line 69

def self.setup
  yield self
end