Sha256: 19ac4e978c7c95befbb4a6c9fd67e7177322d18c60b4574557f95730f95a6fed

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

module Pageflow
  module RailsVersion
    extend self

    def detect
      from_env || '5.2.0'
    end

    def experimental?
      detect != '5.2.0'
    end

    private

    def from_env
      ENV['PAGEFLOW_RAILS_VERSION'] if ENV['PAGEFLOW_RAILS_VERSION'] != ''
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-16.1.0 lib/pageflow/rails_version.rb