Sha256: ea56d6474130ae6a789af4b4585652c2d691bf64bae9893308d2fd1004fd0896

Contents?: true

Size: 356 Bytes

Versions: 24

Compression:

Stored size: 356 Bytes

Contents

module Pageflow
  class OverviewButton
    attr_reader :revision

    def initialize(revision)
      @revision = revision
    end

    def enabled?
      revision.configuration['overview_button_enabled'] &&
        revision.theme.has_overview_button?
    end

    def enabled_value
      revision.configuration['overview_button_enabled']
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/models/pageflow/overview_button.rb
pageflow-17.0.3 app/models/pageflow/overview_button.rb
pageflow-17.0.2 app/models/pageflow/overview_button.rb
pageflow-17.0.1 app/models/pageflow/overview_button.rb
pageflow-17.0.0 app/models/pageflow/overview_button.rb
pageflow-16.2.0 app/models/pageflow/overview_button.rb
pageflow-16.1.0 app/models/pageflow/overview_button.rb
pageflow-16.0.0 app/models/pageflow/overview_button.rb
pageflow-15.8.0 app/models/pageflow/overview_button.rb
pageflow-15.7.1 app/models/pageflow/overview_button.rb
pageflow-15.7.0 app/models/pageflow/overview_button.rb
pageflow-15.6.1 app/models/pageflow/overview_button.rb
pageflow-15.6.0 app/models/pageflow/overview_button.rb
pageflow-15.5.0 app/models/pageflow/overview_button.rb
pageflow-15.4.0 app/models/pageflow/overview_button.rb
pageflow-15.3.0 app/models/pageflow/overview_button.rb
pageflow-15.2.2 app/models/pageflow/overview_button.rb
pageflow-15.2.1 app/models/pageflow/overview_button.rb
pageflow-15.2.0 app/models/pageflow/overview_button.rb
pageflow-15.1.2 app/models/pageflow/overview_button.rb