Sha256: 5e54658fb1a5163c7b4d22fe40b21d14cc579026a89782ebf5b8b21866265fc9

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

#TODO : Rails 2.3.x Deprecation
class ActiveRecord::Associations::AssociationProxy
  def to_comma(style = :default)
    #Bug in Rails 2.3.5, this is a workaround as association_proxy.rb doesn't pass the &block in the send method so it silently fails
    Comma::Generator.new(Array(self), style).run(:each)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comma-0.5.2 lib/comma/association_proxy.rb