Sha256: 7934d3b7444d449c915001aa27cd859537e05e255f623909fd9b704e37bf893e

Contents?: true

Size: 362 Bytes

Versions: 231

Compression:

Stored size: 362 Bytes

Contents

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

231 entries across 231 versions & 4 rubygems

Version Path
jets-3.1.2 lib/jets/controller/layout.rb
jets-3.1.1 lib/jets/controller/layout.rb
jets-3.1.0 lib/jets/controller/layout.rb
jets-3.0.23 lib/jets/controller/layout.rb
jets-3.0.22 lib/jets/controller/layout.rb
jets-3.0.21 lib/jets/controller/layout.rb
jets-3.0.20 lib/jets/controller/layout.rb
jets-3.0.19 lib/jets/controller/layout.rb
jets-3.0.18 lib/jets/controller/layout.rb
jets-3.0.17 lib/jets/controller/layout.rb
jets-3.0.16 lib/jets/controller/layout.rb
jets-3.0.15 lib/jets/controller/layout.rb
jets-3.0.14 lib/jets/controller/layout.rb
jets-3.0.13 lib/jets/controller/layout.rb
jets-3.0.12 lib/jets/controller/layout.rb
jets-3.0.11 lib/jets/controller/layout.rb
jets-3.0.10 lib/jets/controller/layout.rb
jets-3.0.9 lib/jets/controller/layout.rb
jets-3.0.8 lib/jets/controller/layout.rb
jets-3.0.7 lib/jets/controller/layout.rb