Sha256: 1f4a6901167199c3dc1febb44b6c4d1f5ef4e825d7107278d83c63410b7c3205

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

require 'action_view/helpers/prototype_helper' unless defined?(ActionView::Helpers::PrototypeHelper)

module ActionView
  module Helpers
    module PrototypeHelper
      alias :_build_observer :build_observer
      def build_observer(klass, name, options = {})
        options[:with] = 'value' unless options[:with]
        class << options[:with]
          def include?(arg)
            arg == "=" ? true : super
          end
        end
        _build_observer(klass, name, options)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
typo-4.1.1 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.0.1 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.0.2 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-4.1 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.0.3.98.1 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.0 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.0.3.98 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.1.1 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.1.2 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.1.3 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.1 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.1.98 vendor/plugins/action_view_patch/lib/action_view_patch.rb
typo-5.2 vendor/plugins/action_view_patch/lib/action_view_patch.rb