Module: Promethee::Rails::Helper

Defined in:
lib/promethee/rails/helper.rb

Instance Method Summary collapse

Instance Method Details

#promethee(data, options = {}) ⇒ Object



2
3
4
# File 'lib/promethee/rails/helper.rb', line 2

def promethee(data, options = {})
  ApplicationController.renderer.render partial: 'promethee/show', locals: { master_data: data, localization_data: options[:l] }
end

#promethee_class_for(component) ⇒ Object



6
7
8
# File 'lib/promethee/rails/helper.rb', line 6

def promethee_class_for component
  "promethee__component promethee__component--#{component[:type]}"
end