Sha256: 1a77b269997a2c327da3f1a506398e55400ff6dad6077e32f036374ecff7fe01

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'active_support'
require "action_controller"

module MDWA

  module Layout
  	autoload :Base, 'mdwa/layout/base'
  	autoload :Helper, 'mdwa/layout/helper'
	
  	# include the layout selector in ApplicationController
    ActionController::Base.send :include, MDWA::Layout::Helper
    ActiveSupport.on_load(:action_controller) do
        helper_method "current_page"
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mdd-3.0.2 lib/mdwa/layout.rb
mdd-3.0.1 lib/mdwa/layout.rb
mdd-3.0.0 lib/mdwa/layout.rb