Sha256: 22f4e217a125da003f91e666ba9dbfa8e5ab757e7986f95d6f67e4dc4d3ae058

Contents?: true

Size: 979 Bytes

Versions: 61

Compression:

Stored size: 979 Bytes

Contents

require 'promethee'

module ActionView
  module Helpers
    module Tags
      # https://github.com/rails/rails/blob/bdc581616b760d1e2be3795c6f0f3ab4b1e125a5/actionview/lib/action_view/helpers/tags/text_field.rb
      class PrometheeEditor < Base
        def render
          master_data = object.send @method_name unless object.nil?
          master_data = @options[:value] if @options.include? :value
          ApplicationController.renderer.render partial: 'promethee/edit', locals: { master_data: master_data }
        end
      end

      class PrometheeLocalizer < Base
        def render
          localization_data = object.send @method_name unless object.nil?
          localization_data = @options[:value] if @options.include? :value
          master_data = @options[:master]
          ApplicationController.renderer.render partial: 'promethee/localize', locals: { localization_data: localization_data, master_data: master_data }
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
promethee-1.3.7 lib/promethee/core_ext/tags.rb
promethee-1.3.6 lib/promethee/core_ext/tags.rb
promethee-1.3.5 lib/promethee/core_ext/tags.rb
promethee-1.3.4 lib/promethee/core_ext/tags.rb
promethee-1.3.3 lib/promethee/core_ext/tags.rb
promethee-1.3.2 lib/promethee/core_ext/tags.rb
promethee-1.3.1 lib/promethee/core_ext/tags.rb
promethee-1.3.0 lib/promethee/core_ext/tags.rb
promethee-1.2.31 lib/promethee/core_ext/tags.rb
promethee-1.2.30 lib/promethee/core_ext/tags.rb
promethee-1.2.29 lib/promethee/core_ext/tags.rb
promethee-1.2.28 lib/promethee/core_ext/tags.rb
promethee-1.2.27 lib/promethee/core_ext/tags.rb
promethee-1.2.26 lib/promethee/core_ext/tags.rb
promethee-1.2.25 lib/promethee/core_ext/tags.rb
promethee-1.2.24 lib/promethee/core_ext/tags.rb
promethee-1.2.23 lib/promethee/core_ext/tags.rb
promethee-1.2.22 lib/promethee/core_ext/tags.rb
promethee-1.2.21 lib/promethee/core_ext/tags.rb
promethee-1.2.20 lib/promethee/core_ext/tags.rb