Skip to content

Commit

Permalink
Removing JSON root warning in preference to manually specifying it at…
Browse files Browse the repository at this point in the history
… render time. Subclasses that need different JSON behavior can override as necessary.
  • Loading branch information
bguthrie committed Apr 20, 2010
1 parent b590d6a commit 727732f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/resource_full.rb
Expand Up @@ -25,7 +25,3 @@
require File.dirname(__FILE__) + '/resource_full/models/resourced_route.rb'
require File.dirname(__FILE__) + '/resource_full/controllers/resources_controller'
require File.dirname(__FILE__) + '/resource_full/controllers/routes_controller'

if ActiveRecord::VERSION::STRING >= '2.1.0' && !ActiveRecord::Base.include_root_in_json
puts "WARNING: Please set ActiveRecord::Base.include_root_in_json = true to enable ResourceFull's JSON support."
end

0 comments on commit 727732f

Please sign in to comment.