Sha256: 0a109757c7814387f6eaa471568500bb78a791f5ff8507e0a5a31e840b527663

Contents?: true

Size: 567 Bytes

Versions: 2

Compression:

Stored size: 567 Bytes

Contents

require "mdd/version"

module Mdd
  class Mdd < Rails::Engine
    config.autoload_paths << File.expand_path("../app", __FILE__)
  end

  module Generators
  	autoload :Model, 'mdd/generators/model'
    autoload :ModelAttribute, 'mdd/generators/model_attribute'
  end

  module Layout
  	autoload :Base, 'mdd/layout/base'
  	autoload :Helper, 'mdd/layout/helper'
  end
end

# include the layout selector in ApplicationController
ActionController::Base.send :include, Mdd::Layout::Helper
ActiveSupport.on_load(:action_controller) do
    helper_method "current_page"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mdd-2.0.3 lib/mdd.rb
mdd-2.0.2 lib/mdd.rb