app/helpers/trestle/toolbars_helper.rb in trestle-0.9.8 vs app/helpers/trestle/toolbars_helper.rb in trestle-0.10.0.pre
- old
+ new
@@ -14,10 +14,10 @@
safe_join(result, "\n")
end
def deprecated_toolbar(name)
if content_for?(:"#{name}_toolbar")
- ActiveSupport::Deprecation.warn("Using content_for(:#{name}_toolbar) is deprecated. Please use toolbar(:#{name}) instead.")
+ Trestle.deprecator.warn("Using content_for(:#{name}_toolbar) is deprecated. Please use toolbar(:#{name}) instead.")
content_for(:"#{name}_toolbar")
end
end
end
end