Sha256: 15412e220fc93f79a86cb4cdd7672874befc1b45ef1925bfc3b0ed4c279d331c

Contents?: true

Size: 321 Bytes

Versions: 34

Compression:

Stored size: 321 Bytes

Contents

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

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
promethee-1.2.12 lib/promethee/rails/helper.rb
promethee-1.2.11 lib/promethee/rails/helper.rb
promethee-1.2.10 lib/promethee/rails/helper.rb
promethee-1.2.9 lib/promethee/rails/helper.rb
promethee-1.2.8 lib/promethee/rails/helper.rb
promethee-1.2.7 lib/promethee/rails/helper.rb
promethee-1.2.6 lib/promethee/rails/helper.rb
promethee-1.2.5 lib/promethee/rails/helper.rb
promethee-1.2.4 lib/promethee/rails/helper.rb
promethee-1.2.3 lib/promethee/rails/helper.rb
promethee-1.2.2 lib/promethee/rails/helper.rb
promethee-1.2.1 lib/promethee/rails/helper.rb
promethee-1.2.0 lib/promethee/rails/helper.rb
promethee-1.1.0 lib/promethee/rails/helper.rb
promethee-1.0.20 lib/promethee/rails/helper.rb
promethee-1.0.19 lib/promethee/rails/helper.rb
promethee-1.0.18 lib/promethee/rails/helper.rb
promethee-1.0.17 lib/promethee/rails/helper.rb
promethee-1.0.16 lib/promethee/rails/helper.rb
promethee-1.0.15 lib/promethee/rails/helper.rb