Sha256: da7dfbd01bb7bef30e020882e2dbcc116b950afb5bcebe74a82d5247609891ae

Contents?: true

Size: 262 Bytes

Versions: 20

Compression:

Stored size: 262 Bytes

Contents

module Trestle
  module Controller
    module Layout
      extend ActiveSupport::Concern

      included do
        layout :choose_layout
      end

    protected
      def choose_layout
        request.xhr? ? false : "trestle/admin"
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
trestle-0.10.1 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.10.0 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.10.0.pre2 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.10.0.pre app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.8 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.7 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.6 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.5 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.4 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.3 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.9.2 lib/trestle/controller/layout.rb
trestle-0.9.1 lib/trestle/controller/layout.rb
trestle-0.9.0 lib/trestle/controller/layout.rb
trestle-0.8.13 lib/trestle/controller/layout.rb
trestle-0.8.12 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.8.11 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.8.10 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.8.9 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.8.8 app/controllers/concerns/trestle/controller/layout.rb
trestle-0.8.7 app/controllers/concerns/trestle/controller/layout.rb