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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37517c5b81cbf7a693235f819ba70bcd42fab256bdb197e7c1609662ee7584cd
|
4
|
+
data.tar.gz: d4d593e2ff2fe4b8202bd9606368ba180eb884ef17545354650630bc178b2c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|