Sha256: 3385bcf946b2eea2359a1207ae1e5d1de43f11e663da999880fe407a444073fb

Contents?: true

Size: 268 Bytes

Versions: 30

Compression:

Stored size: 268 Bytes

Contents

require_relative 'template_decorator'

module Locomotive
  module Steam
    module Decorators

      class PageDecorator < TemplateDecorator

        def redirect?
          redirect.nil? ? redirect_url.present? : redirect
        end

      end

    end
  end
end



Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.0.rc0 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.0.beta3 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.0.beta2 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.4.1 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.4.0 lib/locomotive/steam/decorators/page_decorator.rb
locomotivecms_steam-1.4.0.rc2 lib/locomotive/steam/decorators/page_decorator.rb