Sha256: a54c046dd02fc918b9db498ec794b8f1dfc176ae2d8788314f1641238376e499

Contents?: true

Size: 324 Bytes

Versions: 51

Compression:

Stored size: 324 Bytes

Contents

module Pageflow
  class OverviewButton
    attr_reader :revision

    def initialize(revision)
      @revision = revision
    end

    def enabled?
      revision.overview_button_enabled? &&
        revision.theme.has_overview_button?
    end

    def enabled_value
      revision.overview_button_enabled?
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
pageflow-14.2.0 app/models/pageflow/overview_button.rb
pageflow-14.1.1 app/models/pageflow/overview_button.rb
pageflow-14.1.0 app/models/pageflow/overview_button.rb
pageflow-14.0.0 app/models/pageflow/overview_button.rb
pageflow-14.0.0.rc2 app/models/pageflow/overview_button.rb
pageflow-14.0.0.rc1 app/models/pageflow/overview_button.rb
pageflow-14.0.0.beta3 app/models/pageflow/overview_button.rb
pageflow-14.0.0.beta2 app/models/pageflow/overview_button.rb
pageflow-14.0.0.beta1 app/models/pageflow/overview_button.rb
pageflow-13.6.0 app/models/pageflow/overview_button.rb
pageflow-13.5.0 app/models/pageflow/overview_button.rb
pageflow-13.4.0 app/models/pageflow/overview_button.rb
pageflow-13.3.0 app/models/pageflow/overview_button.rb
pageflow-13.2.0 app/models/pageflow/overview_button.rb
pageflow-12.6.0 app/models/pageflow/overview_button.rb
pageflow-13.1.0 app/models/pageflow/overview_button.rb
pageflow-12.5.0 app/models/pageflow/overview_button.rb
pageflow-12.4.1 app/models/pageflow/overview_button.rb
pageflow-13.0.0 app/models/pageflow/overview_button.rb
pageflow-13.0.0.rc1 app/models/pageflow/overview_button.rb