Sha256: a0d562407ffdf2a520a561c13122861d01f9ec6dc58fd4fbab0c964f32d7efb2

Contents?: true

Size: 629 Bytes

Versions: 20

Compression:

Stored size: 629 Bytes

Contents

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

    # Include Helpers to base application
    initializer 'effective_posts.action_controller' do |app|
      app.config.to_prepare do
        ActiveSupport.on_load :action_controller_base do
          helper EffectivePostsHelper
        end
      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

20 entries across 20 versions & 1 rubygems

Version Path
effective_posts-2.7.2 lib/effective_posts/engine.rb
effective_posts-2.7.1 lib/effective_posts/engine.rb
effective_posts-2.7.0 lib/effective_posts/engine.rb
effective_posts-2.6.2 lib/effective_posts/engine.rb
effective_posts-2.6.1 lib/effective_posts/engine.rb
effective_posts-2.6.0 lib/effective_posts/engine.rb
effective_posts-2.5.0 lib/effective_posts/engine.rb
effective_posts-2.4.2 lib/effective_posts/engine.rb
effective_posts-2.4.1 lib/effective_posts/engine.rb
effective_posts-2.4.0 lib/effective_posts/engine.rb
effective_posts-2.3.1 lib/effective_posts/engine.rb
effective_posts-2.3.0 lib/effective_posts/engine.rb
effective_posts-2.2.4 lib/effective_posts/engine.rb
effective_posts-2.2.3 lib/effective_posts/engine.rb
effective_posts-2.2.2 lib/effective_posts/engine.rb
effective_posts-2.2.1 lib/effective_posts/engine.rb
effective_posts-2.2.0 lib/effective_posts/engine.rb
effective_posts-2.1.1 lib/effective_posts/engine.rb
effective_posts-2.1.0 lib/effective_posts/engine.rb
effective_posts-2.0.6 lib/effective_posts/engine.rb