Module: Foreigner::Helper
- Defined in:
- lib/foreigner/helper.rb
Class Method Summary collapse
Class Method Details
.active_record_version ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/foreigner/helper.rb', line 3 def self.active_record_version if ::ActiveRecord.respond_to? :version ActiveRecord.version elsif ::ActiveRecord::VERSION::STRING Gem::Version.new(::ActiveRecord::VERSION::STRING) else raise "Unknown ActiveRecord Version API" end end |