module Randumb::ActiveRecord::MethodMissingMagicks
These get registered as class and instance methods
Public Instance Methods
method_missing(symbol, *args)
click to toggle source
Calls superclass method
# File lib/randumb/relation.rb, line 187 def method_missing(symbol, *args) if symbol.to_s =~ /^random_weighted_by_(\w+)$/ ActiveSupport::Deprecation.warn "Dynamic finders will be removed in randumb 1.0 http://guides.rubyonrails.org/active_record_querying.html#dynamic-finders" random_weighted($1, *args) else super end end
respond_to?(symbol, include_private=false)
click to toggle source
Calls superclass method
# File lib/randumb/relation.rb, line 196 def respond_to?(symbol, include_private=false) if symbol.to_s =~ /^random_weighted_by_(\w+)$/ ActiveSupport::Deprecation.warn "Dynamic finders will be removed in randumb 1.0 http://guides.rubyonrails.org/active_record_querying.html#dynamic-finders" true else super end end