Sha256: af41a9eb8d039d7e9809fde77e59d744e649c9dd5220e93c2d414ad52f3230ee

Contents?: true

Size: 510 Bytes

Versions: 294

Compression:

Stored size: 510 Bytes

Contents

ActionView::Helpers::FormHelper.class_eval do
  # https://github.com/rails/rails/blob/13c5aa818e9284fe30f83469b340e579195bda3f/actionview/lib/action_view/helpers/form_helper.rb#L1193
  def promethee_editor(object_name, method, options = {})
    ActionView::Helpers::Tags::PrometheeEditor.new(object_name, method, self, options).render
  end

  def promethee_localizer(object_name, method, options = {})
    ActionView::Helpers::Tags::PrometheeLocalizer.new(object_name, method, self, options).render
  end
end

Version data entries

294 entries across 294 versions & 1 rubygems

Version Path
promethee-1.11.29 lib/promethee/core_ext/form_helper.rb
promethee-1.11.28 lib/promethee/core_ext/form_helper.rb
promethee-1.11.27 lib/promethee/core_ext/form_helper.rb
promethee-1.11.26 lib/promethee/core_ext/form_helper.rb
promethee-1.11.25 lib/promethee/core_ext/form_helper.rb
promethee-1.11.24 lib/promethee/core_ext/form_helper.rb
promethee-1.11.23 lib/promethee/core_ext/form_helper.rb
promethee-1.11.22 lib/promethee/core_ext/form_helper.rb
promethee-1.11.21 lib/promethee/core_ext/form_helper.rb
promethee-1.11.20 lib/promethee/core_ext/form_helper.rb
promethee-1.11.19 lib/promethee/core_ext/form_helper.rb
promethee-1.11.18 lib/promethee/core_ext/form_helper.rb
promethee-1.11.17 lib/promethee/core_ext/form_helper.rb
promethee-1.11.16 lib/promethee/core_ext/form_helper.rb
promethee-1.11.15 lib/promethee/core_ext/form_helper.rb
promethee-1.11.14 lib/promethee/core_ext/form_helper.rb
promethee-1.11.13 lib/promethee/core_ext/form_helper.rb
promethee-1.11.12 lib/promethee/core_ext/form_helper.rb
promethee-1.11.11 lib/promethee/core_ext/form_helper.rb
promethee-1.11.10 lib/promethee/core_ext/form_helper.rb