Sha256: 6d7b5374a1bc6a2f88c3f1cb74c05ee6bc5cbe179a6272ad08119cf7da2fc0b8

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 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_base 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}/config/effective_posts.rb")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_posts-2.0.5 lib/effective_posts/engine.rb
effective_posts-2.0.4 lib/effective_posts/engine.rb
effective_posts-2.0.3 lib/effective_posts/engine.rb
effective_posts-2.0.2 lib/effective_posts/engine.rb
effective_posts-2.0.1 lib/effective_posts/engine.rb
effective_posts-2.0.0 lib/effective_posts/engine.rb