administrate-field-lazy_belongs_to 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6af0d252d532323cb506524d73fa060e83ae40ad7d2ac54ef5e402cb596d128
4
- data.tar.gz: ef6b9e1cd805114f87080be3025d853f04acc81b7907f688ed76a8be1ab8f9e1
3
+ metadata.gz: 37517c5b81cbf7a693235f819ba70bcd42fab256bdb197e7c1609662ee7584cd
4
+ data.tar.gz: d4d593e2ff2fe4b8202bd9606368ba180eb884ef17545354650630bc178b2c2c
5
5
  SHA512:
6
- metadata.gz: 9c5ed7524305bedfe7a46f07298830842dcb4aed3e31c85cc7efd097ded09e2b9c0f2359b76dcd0d2ff0bcfd6bdfba43c62de4de988463d78c4aee054d0857c2
7
- data.tar.gz: 5dc7ba9b932bd07bec785c52bc688ad6189a86d61885c4a3336082df9e93a49bbb313391099576cbdc67412aa3700bff3ce7aec7cbe139d8af35dfd8e4e2e7bc
6
+ metadata.gz: aaddd4c7eb6e7cf32134c1663b8abe39c11d14a5506a4847d14c1061a526a762f6e109f5d47810a9034cdf4771f08358f0f9e10ede0021a05bb55acdfdc40aaf
7
+ data.tar.gz: 6cb45b4569704266d7cbe661d7c4aac68436ff1bcdd3569ad081711d1b5c2f7b3f623fd28182ee3c3616b72ddfdd273c639f3e7273745567271226351dbabf4b
@@ -1,6 +1,7 @@
1
1
  require 'administrate/field/belongs_to'
2
2
  require 'administrate/field/lazy_belongs_to/version'
3
3
  require 'rails/engine'
4
+ require 'administrate/engine'
4
5
 
5
6
  module Administrate
6
7
  module Field
@@ -40,6 +41,10 @@ module Administrate
40
41
  options.fetch(:label_attribute) { 'name' }
41
42
  end
42
43
 
44
+ def size
45
+ options.fetch(:size) { 10 }
46
+ end
47
+
43
48
  def url_helpers
44
49
  Rails.application.routes.url_helpers
45
50
  end
@@ -1,7 +1,7 @@
1
1
  module Administrate
2
2
  module Field
3
3
  module LazyBelongsToVersion
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.1.1'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-lazy_belongs_to
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld