Sha256: e76630198d5d81da61d450f6b6379651a6770cb85f4473540fb93198ff0ba91d

Contents?: true

Size: 598 Bytes

Versions: 19

Compression:

Stored size: 598 Bytes

Contents

module EffectivePosts
  class Engine < ::Rails::Engine
    engine_name 'effective_posts'

    # Include Helpers to base application
    initializer 'effective_posts.action_controller' do |app|
      ActiveSupport.on_load :action_controller do
        helper EffectivePostsHelper
      end
    end

    # Set up our default configuration options.
    initializer "effective_posts.defaults", :before => :load_config_initializers do |app|
      # Set up our defaults, as per our initializer template
      eval File.read("#{config.root}/lib/generators/templates/effective_posts.rb")
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
effective_posts-0.4.7 lib/effective_posts/engine.rb
effective_posts-0.4.6 lib/effective_posts/engine.rb
effective_posts-0.4.5 lib/effective_posts/engine.rb
effective_posts-0.4.4 lib/effective_posts/engine.rb
effective_posts-0.4.3 lib/effective_posts/engine.rb
effective_posts-0.4.2 lib/effective_posts/engine.rb
effective_posts-0.4.1 lib/effective_posts/engine.rb
effective_posts-0.4.0 lib/effective_posts/engine.rb
effective_posts-0.3.0 lib/effective_posts/engine.rb
effective_posts-0.2.6 lib/effective_posts/engine.rb
effective_posts-0.2.5 lib/effective_posts/engine.rb
effective_posts-0.2.4 lib/effective_posts/engine.rb
effective_posts-0.2.3 lib/effective_posts/engine.rb
effective_posts-0.2.2 lib/effective_posts/engine.rb
effective_posts-0.2.1 lib/effective_posts/engine.rb
effective_posts-0.2.0 lib/effective_posts/engine.rb
effective_posts-0.1.2 lib/effective_posts/engine.rb
effective_posts-0.1.1 lib/effective_posts/engine.rb
effective_posts-0.1 lib/effective_posts/engine.rb