Sha256: fd372c11df8c007dc3c9e18245613d78f8c891ee1f48f342fafeb2df0d1413c3
Contents?: true
Size: 422 Bytes
Versions: 24
Compression:
Stored size: 422 Bytes
Contents
require 'active_support' require 'active_support/core_ext' class Jets::Controller module Layout extend ActiveSupport::Concern included do class_attribute :layout_name def self.layout(name=nil) if !name.nil? name = name.to_s if name.is_a?(Symbol) self.layout_name = name else self.layout_name end end end # included end # Layout end
Version data entries
24 entries across 24 versions & 1 rubygems