Sha256: 53934b3c6e33cde5f83e4ba06cc93bcc61076f1ad0e75b6210b1cc315c6e25d8
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
module Avo module MediaLibrary class Configuration include ActiveSupport::Configurable config_accessor(:visible) { true } config_accessor(:enabled) { false } def visible? Avo::ExecutionContext.new(target: config[:visible]).handle end end def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avo-3.16.4 | lib/avo/media_library/configuration.rb |
avo-3.16.3 | lib/avo/media_library/configuration.rb |