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-4.0.12 lib/jets/controller/layout.rb
jets-4.0.11 lib/jets/controller/layout.rb
jets-4.0.10 lib/jets/controller/layout.rb
jets-4.0.9 lib/jets/controller/layout.rb
jets-4.0.8 lib/jets/controller/layout.rb
jets-4.0.7 lib/jets/controller/layout.rb
jets-4.0.6 lib/jets/controller/layout.rb
jets-4.0.5 lib/jets/controller/layout.rb
jets-4.0.4 lib/jets/controller/layout.rb
jets-4.0.3 lib/jets/controller/layout.rb
jets-4.0.2 lib/jets/controller/layout.rb
jets-4.0.1 lib/jets/controller/layout.rb
jets-4.0.0 lib/jets/controller/layout.rb
jets-3.2.2 lib/jets/controller/layout.rb
jets-3.2.1 lib/jets/controller/layout.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/controller/layout.rb
jets-3.2.0 lib/jets/controller/layout.rb
jets-3.1.5 lib/jets/controller/layout.rb
jets-3.1.4 lib/jets/controller/layout.rb
jets-3.1.3 lib/jets/controller/layout.rb