Class: HasFilepickerImage::View
- Inherits:
-
Object
- Object
- HasFilepickerImage::View
- Defined in:
- lib/has_filepicker_image/view.rb
Instance Method Summary collapse
-
#initialize(object_name, attribute_name, template, options = {}) ⇒ View
constructor
A new instance of View.
- #render ⇒ Object
Constructor Details
#initialize(object_name, attribute_name, template, options = {}) ⇒ View
Returns a new instance of View.
3 4 5 6 7 8 |
# File 'lib/has_filepicker_image/view.rb', line 3 def initialize(object_name, attribute_name, template, = {}) @object_name = object_name @attribute_name = attribute_name @template = template @options = end |
Instance Method Details
#render ⇒ Object
10 11 12 |
# File 'lib/has_filepicker_image/view.rb', line 10 def render + preview + hidden_field end |