locomotivecms/steam

View on GitHub
lib/locomotive/steam/decorators/page_decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
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