Sha256: ea1db48d96174cf6135a27de16ca1de14e8dabe78b903473baa59bd53654fe26
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
# ---------------------------------------------------------------- # ● Implement check_if_method_has_arguments! method for Rails 3 # ---------------------------------------------------------------- module ActiveRecord::QueryMethods def check_if_method_has_arguments!(method_name, args) if args.blank? raise ArgumentError, "The method .#{method_name}() must contain arguments." end end end module ActiveRecord::Calculations def distinct_value uniq_value end def distinct_value=(v) self.uniq_value = v end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
left_joins-1.0.6 | lib/left_joins_for_rails_3.rb |