Sha256: fd12a0be4b4bb72565504042a5d4b7856acc8bc78bc5b557674c39b1389e9fbe

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

module RailsBlogEngine
  class Engine < Rails::Engine
    isolate_namespace RailsBlogEngine

    # Define some initialization parameters and their default values.
    config.rails_blog_engine = ActiveSupport::OrderedOptions.new
    config.rails_blog_engine.layout = 'application'

    config.to_prepare do
      ::ApplicationHelper.class_eval do
        # Returns the current object.  This can be called from a layout or
        # view used with rails_blog_engine to access the containing
        # application's helpers.
        def app_helpers
          self
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.3 lib/rails_blog_engine/engine.rb