Sha256: e69222cc57412f27dad8cb482d673d3759b5ad1e5d63dae562a0dbd6729aa0e1
Contents?: true
Size: 305 Bytes
Versions: 12
Compression:
Stored size: 305 Bytes
Contents
module WhyValidationsSuckIn96 class ValidationCollection < Array def to_json(options={}) inject({}) do |acc,validation| acc[validation.attribute] = validation.options acc end.to_json(options) end def select(&block) self.class.new super end end end
Version data entries
12 entries across 12 versions & 1 rubygems