Sha256: d283d96b235c2e8370979a281c93e9c0807b7d1a5ba62a02457bb5a4cc133209
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
module Bhf class Engine < Rails::Engine isolate_namespace Bhf config.bhf = OpenStruct.new( on_login_fail: :root_url, logout_path: :logout_path, session_auth_name: :is_admin, session_account_id: :admin_account_id, account_model: 'User', account_model_find_method: 'find', css: ['bhf/application'], js: ['bhf/application'], abstract_config: [] ) initializer 'bhf.helper' do |app| ActiveSupport.on_load :action_controller do helper Bhf::FrontendHelper end end initializer 'bhf.model_hooks' do ActiveSupport.on_load :active_record do include Bhf::ActiveRecord::Object end ActiveSupport.on_load :mongoid do include Bhf::Mongoid::Document end end end end require 'haml' require 'kaminari' require 'bhf/active_record/active_record' require 'bhf/mongoid/document' require 'bhf/data' require 'bhf/platform' require 'bhf/config_parser' require 'bhf/settings' require 'bhf/pagination' require 'bhf/form'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bhf-0.7.9 | lib/bhf.rb |