Sha256: 44fa1739bf04bce805329979fa3f4587ed8dd2b1e66d1a3a482680093fbdd8b5

Contents?: true

Size: 1.9 KB

Versions: 18

Compression:

Stored size: 1.9 KB

Contents

require 'haml'
require 'sass'
require 'turbolinks'
require 'kaminari'

module Bhf
  class Engine < Rails::Engine
    
    isolate_namespace Bhf
    
    initializer 'bhf.helper' do
      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::Base
      end
      ActiveSupport.on_load :mongoid do
        include Bhf::Mongoid::Document
      end
    end
  end
  
  
  def self.configuration
    @configuration ||= Bhf::Configuration.new
  end
  def self.configure
    yield configuration
  end
  class Configuration
    include ActiveSupport::Configurable

    config_accessor(:on_login_fail)             { :root_url           }
    config_accessor(:logout_path)               { :logout_path        }
    config_accessor(:session_auth_name)         { :is_admin           }
    config_accessor(:session_account_id)        { :admin_account_id   }
    config_accessor(:account_model)             { 'User'              }
    config_accessor(:account_model_find_method) { 'find'              }
    config_accessor(:css)                       { ['bhf/application'] }
    config_accessor(:js)                        { ['bhf/application'] }
    config_accessor(:abstract_settings)         { []                  }
    config_accessor(:paperclip_image_types)     {
      ['image/jpeg', 'image/pjpeg', 'image/jpg', 'image/png', 'image/tif', 'image/gif']
    }
  end
end

require 'bhf/settings/base'
require 'bhf/settings/platform'
require 'bhf/settings/yaml_parser'
require 'bhf/platform/base'
require 'bhf/platform/pagination'
require 'bhf/platform/attribute/abstract'
require 'bhf/platform/attribute/column'
require 'bhf/platform/attribute/reflection'
require 'bhf/active_record/base'
require 'bhf/mongoid/document'
require 'bhf/action_view/form_options'
require 'bhf/action_view/form_builder'

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bhf-0.10.10 lib/bhf.rb
bhf-0.10.9 lib/bhf.rb
bhf-0.9.9 lib/bhf.rb
bhf-0.9.8 lib/bhf.rb
bhf-0.9.7 lib/bhf.rb
bhf-0.9.6 lib/bhf.rb
bhf-0.9.5 lib/bhf.rb
bhf-0.9.4 lib/bhf.rb
bhf-0.9.3 lib/bhf.rb
bhf-0.9.2 lib/bhf.rb
bhf-0.9.1 lib/bhf.rb
bhf-0.9.0 lib/bhf.rb
bhf-0.8.7 lib/bhf.rb
bhf-0.8.6 lib/bhf.rb
bhf-0.8.5 lib/bhf.rb
bhf-0.8.4 lib/bhf.rb
bhf-0.8.3 lib/bhf.rb
bhf-0.8.2 lib/bhf.rb