Sha256: 5986da6bbeca71e06fe237e5e0eef874c10c20295562fa4a19f7428541cdc145

Contents?: true

Size: 315 Bytes

Versions: 131

Compression:

Stored size: 315 Bytes

Contents

module Avo
  module Fields
    module Concerns
      module IsDisabled
        extend ActiveSupport::Concern

        attr_reader :disabled

        def is_disabled?
          Avo::ExecutionContext.new(target: disabled, record: record, view: view, resource: resource).handle
        end
      end
    end
  end
end

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
avo-3.14.3 lib/avo/fields/concerns/is_disabled.rb
avo-3.14.2 lib/avo/fields/concerns/is_disabled.rb
avo-3.14.1 lib/avo/fields/concerns/is_disabled.rb
avo-3.14.0 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.7 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.6 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.5 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.4 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.3 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.2 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.1 lib/avo/fields/concerns/is_disabled.rb
avo-3.13.0 lib/avo/fields/concerns/is_disabled.rb
avo-3.12.0 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.10 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.9 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.8 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.7 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.6 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.5 lib/avo/fields/concerns/is_disabled.rb
avo-3.11.4 lib/avo/fields/concerns/is_disabled.rb