Sha256: ecb0d0e58a56f6572f22ff531c45e3d726ff22ba1c08428dbd1686d364fdd614

Contents?: true

Size: 340 Bytes

Versions: 7

Compression:

Stored size: 340 Bytes

Contents

module Mdd
	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
		    end
		end

	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mdd-2.0.1 lib/mdd/layout/helper.rb
mdd-2.0 lib/mdd/layout/helper.rb
mdd-1.1.0 lib/mdd/layout/helper.rb
mdd-1.0.3 lib/mdd/layout/helper.rb
mdd-1.0.2 lib/mdd/layout/helper.rb
mdd-1.0.1 lib/mdd/layout/helper.rb
mdd-1.0 lib/mdd/layout/helper.rb