module RequiredScopes::ActiveRecord::VersionCompatibility
Private Class Methods
impl()
click to toggle source
# File lib/required_scopes/active_record/version_compatibility.rb, line 11 def impl @impl ||= if ::ActiveRecord::VERSION::MAJOR == 4 ActiveRecord4.new elsif ::ActiveRecord::VERSION::MAJOR == 3 ActiveRecord3.new else raise "RequiredScopes does not support ActiveRecord version #{ActiveRecord::VERSION::STRING} currently." end end