image_input 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/image_input/engine.rb +5 -3
- data/lib/image_input/helpers.rb +5 -3
- data/lib/image_input/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e05a8c96a19bdf1a9bbcb5440ad4873e745984df5d699e3c245891088598ce80
|
4
|
+
data.tar.gz: 9f663e1a8463389ab87b7065de53901655ad1222736b08ea116d6d8766f02885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da40acec7591bfa36a3cce7e9ca72586a0aea77f3f3118435d85a03dea47e5d69931a65695eebd5b1738aba355d6434c0350018090a3b9bfa7938ca149b35b40
|
7
|
+
data.tar.gz: 501a41dbc3c290989637bc351bccc3aafc5e4b7ea386ce9f1dca05598b5e85bada12107e8bf52b51681913d28a971c1921d10317bf92895248fbb5cd0272bce0
|
data/lib/image_input/engine.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
module ImageInput
|
4
|
+
class Engine < ::Rails::Engine
|
5
|
+
initializer 'image_input.engine' do |_app|
|
6
|
+
ActionView::Base.include ImageInput::Helpers
|
7
|
+
end
|
6
8
|
end
|
7
9
|
end
|
data/lib/image_input/helpers.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module ImageInput
|
4
|
-
|
5
|
-
|
3
|
+
module ImageInput
|
4
|
+
module Helpers
|
5
|
+
def image_input(form, field)
|
6
|
+
render 'image_input/input', form: form, field: field
|
7
|
+
end
|
6
8
|
end
|
7
9
|
end
|
data/lib/image_input/version.rb
CHANGED