Sha256: 50eeaf99c18ee17065a1e6c25a503d1612067f3fc6f056c722fa45654f36a737
Contents?: true
Size: 387 Bytes
Versions: 234
Compression:
Stored size: 387 Bytes
Contents
module Avo module Fields class IdField < BaseField attr_reader :link_to_resource def initialize(id, **args, &block) args[:readonly] = true args[:sortable] = true hide_on [:edit, :new] super(id, **args, &block) @link_to_resource = args[:link_to_resource].present? ? args[:link_to_resource] : false end end end end
Version data entries
234 entries across 234 versions & 1 rubygems