lib/roar-rails.rb in roar-rails-1.0.0 vs lib/roar-rails.rb in roar-rails-1.0.1
- old
+ new
@@ -7,10 +7,11 @@
autoload("XML", "roar/xml")
autoload("JSON", "roar/json")
module JSON
autoload("HAL", "roar/rails/hal")
+ autoload("JSONAPI", "roar/rails/json_api")
end
autoload("Hypermedia", "roar/hypermedia")
end
@@ -26,10 +27,13 @@
require 'roar/rails/rails3_0_strategy'
elsif rails_version.~ 3.1
require 'roar/rails/rails3_1_strategy'
elsif rails_version.~ 3.2
require 'roar/rails/rails3_2_strategy'
+ elsif rails_version.~ 4.2
+ require 'roar/rails/rails4_2_strategy'
else
+ # fallback to 4.0 strategy
require 'roar/rails/rails4_0_strategy'
end
autoload("TestCase", "roar/rails/test_case")
end