18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/promethee/core_ext/tags.rb', line 18
def render
localization_data = object.send @method_name unless object.nil?
localization_data = @options[:value] if @options.include? :value
@options[:disable_page_attributes] ||= false
@template_object.render partial: 'promethee/localize',
locals: {
object_name: @object_name,
method_name: @method_name,
localization_data: localization_data,
master_data: @options[:master],
other_data: @options[:other],
disable_page_attributes: @options[:disable_page_attributes]
}
end
|