Skip to content

Commit

Permalink
RAILS_ENV is deprecated in Rails 3 so replace it with Rails.env.
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Nov 13, 2010
1 parent bccede1 commit a42dae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -302,7 +302,7 @@ And if schema defaults don't provide the flexibility that you need, then
you could specify a per-environment default:

class User < ActiveRecord::Base
if RAILS_ENV == "development"
if Rails.env == "development"
default_value_for :is_admin, true
end
end
Expand Down

0 comments on commit a42dae7

Please sign in to comment.