Sha256: c8163475141c67fcbf4905367a72cffb37567b0363363ecd5ceceb40fa23cfb1

Contents?: true

Size: 452 Bytes

Versions: 294

Compression:

Stored size: 452 Bytes

Contents

ActionView::Helpers::FormBuilder.class_eval do
  # https://github.com/rails/rails/blob/13c5aa818e9284fe30f83469b340e579195bda3f/actionview/lib/action_view/helpers/form_helper.rb#L2148
  def promethee(method, options = {})
    @template.promethee_editor(@object_name, method, objectify_options(options))
  end

  def promethee_localizer(method, options = {})
    @template.promethee_localizer(@object_name, method, objectify_options(options))
  end
end

Version data entries

294 entries across 294 versions & 1 rubygems

Version Path
promethee-5.1.1 lib/promethee/core_ext/form_builder.rb
promethee-5.1.0 lib/promethee/core_ext/form_builder.rb
promethee-5.0.2 lib/promethee/core_ext/form_builder.rb
promethee-5.0.1 lib/promethee/core_ext/form_builder.rb
promethee-5.0.0 lib/promethee/core_ext/form_builder.rb
promethee-4.1.28 lib/promethee/core_ext/form_builder.rb
promethee-4.1.27 lib/promethee/core_ext/form_builder.rb
promethee-4.1.26 lib/promethee/core_ext/form_builder.rb
promethee-4.1.25 lib/promethee/core_ext/form_builder.rb
promethee-4.1.24 lib/promethee/core_ext/form_builder.rb
promethee-4.1.23 lib/promethee/core_ext/form_builder.rb
promethee-4.1.22 lib/promethee/core_ext/form_builder.rb
promethee-4.1.21 lib/promethee/core_ext/form_builder.rb
promethee-4.1.20 lib/promethee/core_ext/form_builder.rb
promethee-4.1.19 lib/promethee/core_ext/form_builder.rb
promethee-4.1.18 lib/promethee/core_ext/form_builder.rb
promethee-4.1.17 lib/promethee/core_ext/form_builder.rb
promethee-4.1.16 lib/promethee/core_ext/form_builder.rb
promethee-4.1.15 lib/promethee/core_ext/form_builder.rb
promethee-4.1.14 lib/promethee/core_ext/form_builder.rb