Sha256: aa350a1cb61a58cbe95015c32ae5ceed154f8436693f03bf7e6bdc643512a2f0

Contents?: true

Size: 564 Bytes

Versions: 19

Compression:

Stored size: 564 Bytes

Contents

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

module MDWA
	module Layout

		module Helper

			extend ActiveSupport::Concern

			def self.included(base)
				base.send :include, ClassMethods
			end

			module ClassMethods
				def select_layout
      		Base.select_layout "#{request.path_parameters[:controller]}##{request.path_parameters[:action]}"
		  	end
		  	
        def current_page
          "#{request.path_parameters[:controller].gsub('/', '_').underscore}_#{request.path_parameters[:action].underscore}"
        end
        
		  end
		end

	end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mdd-3.1.4 lib/mdwa/layout/helper.rb
mdd-3.1.2 lib/mdwa/layout/helper.rb
mdd-3.1.1 lib/mdwa/layout/helper.rb
mdd-3.1.0 lib/mdwa/layout/helper.rb
mdd-3.0.20 lib/mdwa/layout/helper.rb
mdd-3.0.19 lib/mdwa/layout/helper.rb
mdd-3.0.18 lib/mdwa/layout/helper.rb
mdd-3.0.17 lib/mdwa/layout/helper.rb
mdd-3.0.16 lib/mdwa/layout/helper.rb
mdd-3.0.15 lib/mdwa/layout/helper.rb
mdd-3.0.14 lib/mdwa/layout/helper.rb
mdd-3.0.13 lib/mdwa/layout/helper.rb
mdd-3.0.10 lib/mdwa/layout/helper.rb
mdd-3.0.9 lib/mdwa/layout/helper.rb
mdd-3.0.8 lib/mdwa/layout/helper.rb
mdd-3.0.7 lib/mdwa/layout/helper.rb
mdd-3.0.6 lib/mdwa/layout/helper.rb
mdd-3.0.4 lib/mdwa/layout/helper.rb
mdd-3.0.3 lib/mdwa/layout/helper.rb