提交 0584e21a 编写于 作者: R Ryuta Kamizono

Remove returning true in internal callbacks

`display_deprecation_warning_for_false_terminator` was removed since
3a25cdca.
上级 23aa0a2b
......@@ -62,7 +62,6 @@ def define_attribute_methods # :nodoc:
super(attribute_names)
@attribute_methods_generated = true
end
true
end
def undefine_attribute_methods # :nodoc:
......
......@@ -216,13 +216,7 @@ def define_autosave_validation_callbacks(reflection)
method = :validate_single_association
end
define_non_cyclic_method(validation_method) do
send(method, reflection)
# TODO: remove the following line as soon as the return value of
# callbacks is ignored, that is, returning `false` does not
# display a deprecation warning or halts the callback chain.
true
end
define_non_cyclic_method(validation_method) { send(method, reflection) }
validate validation_method
after_validation :_ensure_no_duplicate_errors
end
......@@ -369,7 +363,6 @@ def normalize_reflection_attribute(indexed_attribute, reflection, index, attribu
# association whether or not the parent was a new record before saving.
def before_save_collection_association
@new_record_before_save = new_record?
true
end
def after_save_collection_association
......
......@@ -66,10 +66,6 @@ def self.initialize_i18n(app)
app.reloaders << reloader
app.reloader.to_run do
reloader.execute_if_updated { require_unload_lock! }
# TODO: remove the following line as soon as the return value of
# callbacks is ignored, that is, returning `false` does not
# display a deprecation warning or halts the callback chain.
true
end
reloader.execute
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册