lib/tori/config.rb in tori-0.6.6 vs lib/tori/config.rb in tori-0.7.0
- old
+ new
@@ -6,9 +6,11 @@
@filename_callback = nil
end
def filename_callback(&block)
if block_given?
+ warn "DEPRECATED: `#{__method__}' is deprecated method."
+ warn "Please use `tori` method block style in model like `tori :name, { |model| model.id }`."
@filename_callback = block
else
@filename_callback
end
end