Sha256: d2b5b9f8a63992a9a2823b881cb6aaa5f2220464d7c38748ac238271a44ef98d

Contents?: true

Size: 269 Bytes

Versions: 10

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module LinkedRails
  class Form
    class Field
      class FileInput < Field
        attr_writer :max_size

        def max_size
          @max_size.respond_to?(:call) ? @max_size.call : @max_size
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
linked_rails-0.0.4.pre.g3aeec2263 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.gacd5f04d4 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.gb0b6aea40 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.g792a1b887 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.g58af47992 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.g0ec6e30ca app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.g9e3bcac55 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.g222bfeeca app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.gb254a2893 app/models/linked_rails/form/field/file_input.rb
linked_rails-0.0.4.pre.g2c6c26e86 app/models/linked_rails/form/field/file_input.rb