Class: ActionView::Helpers::Tags::PrometheeEditor

Inherits:
Base
  • Object
show all
Defined in:
lib/promethee/core_ext/tags.rb

Overview

Instance Method Summary collapse

Instance Method Details

#renderObject



8
9
10
11
12
13
14
# File 'lib/promethee/core_ext/tags.rb', line 8

def render
  @options[:master_data] = object.send @method_name unless object.nil?
  @options[:master_data] = @options[:value] if @options.key?(:value)
  @options[:disable_page_attributes] ||= false

  @template_object.render partial: 'promethee/edit', locals: @options
end