1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Put spaces between the words at deprecation warning

This commit is contained in:
Rafael Mendonça França 2012-01-31 14:22:10 -02:00
parent 40b218977e
commit 62c955db79

View file

@ -58,9 +58,9 @@ module ActiveRecord::Associations::Builder
def dependent_restrict_deprecation_warning def dependent_restrict_deprecation_warning
if dependent_restrict_raises? if dependent_restrict_raises?
msg = "In the next release, `:dependent => :restrict` will not raise a `DeleteRestrictionError`."\ msg = "In the next release, `:dependent => :restrict` will not raise a `DeleteRestrictionError`. "\
"Instead, it will add an error on the model. To fix this warning, make sure your code" \ "Instead, it will add an error on the model. To fix this warning, make sure your code " \
"isn't relying on a `DeleteRestrictionError` and then add" \ "isn't relying on a `DeleteRestrictionError` and then add " \
"`config.active_record.dependent_restrict_raises = false` to your application config." "`config.active_record.dependent_restrict_raises = false` to your application config."
ActiveSupport::Deprecation.warn msg ActiveSupport::Deprecation.warn msg
end end