Sha256: 8214451bdc1ccbf35c63ee67b08f79a2b8d4b074afcce3b5aec38e66c4f87628

Contents?: true

Size: 601 Bytes

Versions: 18

Compression:

Stored size: 601 Bytes

Contents

module Landable
  class NullPageDecorator < Landable::PageDecorator
    def initialize
    end

    def title
      # Obviously, this should instead be configured with Landable in some way,
      # such that you can register the titles you want everywhere. Or, of course,
      # a more reasonable way to bypass Landable entirely yet still use the
      # `landable` helper. Just waiting to tease out what features we need.
      content_tag('title', 'No current page; default title')
    end

    def meta_tags
      ''
    end

    def path
      ''
    end

    def body
      ''
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 app/decorators/landable/null_page_decorator.rb
landable-1.13.2 app/decorators/landable/null_page_decorator.rb
landable-1.13.1 app/decorators/landable/null_page_decorator.rb
landable-1.12.3 app/decorators/landable/null_page_decorator.rb
landable-1.12.2 app/decorators/landable/null_page_decorator.rb
landable-1.12.1 app/decorators/landable/null_page_decorator.rb
landable-1.11.1 app/decorators/landable/null_page_decorator.rb
landable-1.11.0 app/decorators/landable/null_page_decorator.rb
landable-1.10.0.rc2 app/decorators/landable/null_page_decorator.rb
landable-1.10.0.rc1 app/decorators/landable/null_page_decorator.rb
landable-1.9.2 app/decorators/landable/null_page_decorator.rb
landable-1.9.1 app/decorators/landable/null_page_decorator.rb
landable-1.9.0 app/decorators/landable/null_page_decorator.rb
landable-1.9.0.rc2 app/decorators/landable/null_page_decorator.rb
landable-1.9.0.rc1 app/decorators/landable/null_page_decorator.rb
landable-1.8.0 app/decorators/landable/null_page_decorator.rb
landable-1.7.1.rc1 app/decorators/landable/null_page_decorator.rb
landable-1.7.0 app/decorators/landable/null_page_decorator.rb