Sha256: 8290cf07c25cee5744e9f51bb862ad92f0c1ab8029f313714b95c56a760af5e5

Contents?: true

Size: 234 Bytes

Versions: 13

Compression:

Stored size: 234 Bytes

Contents

module Headmin
  class BlocksView < ViewModel
    def show_blocks?
      blockable&.respond_to?(:blocks)
    end

    def paths
      @paths || []
    end

    def prefixes
      paths + ["website/blocks", "blocks"]
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
headmin-0.6.3 app/models/headmin/blocks_view.rb
headmin-0.6.2 app/models/headmin/blocks_view.rb
headmin-0.6.1 app/models/headmin/blocks_view.rb
headmin-0.6.0 app/models/headmin/blocks_view.rb
headmin-0.5.9 app/models/headmin/blocks_view.rb
headmin-0.5.8 app/models/headmin/blocks_view.rb
headmin-0.5.7 app/models/headmin/blocks_view.rb
headmin-0.5.6 app/models/headmin/blocks_view.rb
headmin-0.5.5 app/models/headmin/blocks_view.rb
headmin-0.5.4 app/models/headmin/blocks_view.rb
headmin-0.5.3 app/models/headmin/blocks_view.rb
headmin-0.5.2 app/models/headmin/blocks_view.rb
headmin-0.5.1 app/models/headmin/blocks_view.rb