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

Version Path
jets-1.1.5 lib/jets/controller/layout.rb
jets-1.1.4 lib/jets/controller/layout.rb
jets-1.1.3 lib/jets/controller/layout.rb
jets-1.1.2 lib/jets/controller/layout.rb
jets-1.1.1 lib/jets/controller/layout.rb
jets-1.1.0 lib/jets/controller/layout.rb
jets-1.0.18 lib/jets/controller/layout.rb
jets-1.0.17 lib/jets/controller/layout.rb
jets-1.0.16 lib/jets/controller/layout.rb
jets-1.0.15 lib/jets/controller/layout.rb
jets-1.0.13 lib/jets/controller/layout.rb
jets-1.0.12 lib/jets/controller/layout.rb
jets-1.0.11 lib/jets/controller/layout.rb
jets-1.0.10 lib/jets/controller/layout.rb
jets-1.0.9 lib/jets/controller/layout.rb
jets-1.0.8 lib/jets/controller/layout.rb
jets-1.0.7 lib/jets/controller/layout.rb
jets-1.0.6 lib/jets/controller/layout.rb
jets-1.0.5 lib/jets/controller/layout.rb
jets-1.0.4 lib/jets/controller/layout.rb