mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 04:44:59 +00:00
15 lines
297 B
Ruby
15 lines
297 B
Ruby
unless rails4?
|
|
module ActiveRecord
|
|
class Relation
|
|
# Patch Rails 3 ActiveRecord::Relation to noop on Rails 4 references
|
|
# thereby getting code that works for rails 3 and 4 without
|
|
# deprecation warnings
|
|
|
|
def references(*args)
|
|
self
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|