Sha256: f8ec666b5745704982834020bf430bd3cb91e877e35ed85331f8d89de3e613e2

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

require "rules_engine"
require "rails"

module RulesEngine
  class Engine < Rails::Engine
      
    initializer "rules_engine.action_view" do |app|
      ActionView::Base.send(:include, RulesEngineView::Alerts)
      ActionView::Base.send(:include, RulesEngineView::Boxes)
      ActionView::Base.send(:include, RulesEngineView::Buttons)
      ActionView::Base.send(:include, RulesEngineView::Navigate)
      ActionView::Base.send(:include, RulesEngineView::Defer)
      
      ActionView::Base.send(:include, RulesEngineView::FormStyles)
      ActionView::Base.send(:include, RulesEngineView::FormFields)
      ActionView::Base.send(:include, RulesEngineView::FormBuilderView)          
    end

    initializer "rules_engine.action_controller" do |app|
      ActionController::Base.send(:include, RulesEngineView::ModelLoader)
    end

    rake_tasks do
      load File.expand_path(File.dirname(__FILE__) + "./../../tasks/rules_engine.rake")
    end    
    
    generators do
      require File.expand_path(File.dirname(__FILE__) + "./../../generators/install_generator")
      require File.expand_path(File.dirname(__FILE__) + "./../../generators/layout_generator")
      require File.expand_path(File.dirname(__FILE__) + "./../../generators/rule_generator")
    end    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rules_engine-0.3.3 lib/rules_engine/engine.rb
rules_engine-0.3.2 lib/rules_engine/engine.rb
rules_engine-0.3.1 lib/rules_engine/engine.rb
rules_engine-0.3.0 lib/rules_engine/engine.rb