Class: HasFilepickerImage::View

Inherits:
Object
  • Object
show all
Defined in:
lib/has_filepicker_image/view.rb

Instance Method Summary collapse

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, options = {})
  @object_name = object_name
  @attribute_name = attribute_name
  @template = template
  @options = options
end

Instance Method Details

#renderObject



10
11
12
# File 'lib/has_filepicker_image/view.rb', line 10

def render
  buttons + preview + hidden_field
end