add a message for deprecated config option

This commit is contained in:
Corey Woodcox 2012-01-24 16:00:56 -07:00 committed by Mario Visic
parent 1a5050a0c1
commit 7aadd9d129

View File

@ -36,6 +36,16 @@ module Locomotive
@@settings
end
def lastest_items_nb=(setting)
puts "DEPRACATION WARNING: The Locomotive config setting 'lastest_items_nb' was misspelled and will be removed in a future version. Please use 'latest_items_nb' in your Locomotive initializer."
self.settings.latest_items_nb = setting
end
def lastest_items_nb
puts "DEPRACATION WARNING: The Locomotive config setting 'lastest_items_nb' was misspelled and will be removed in a future version. Please use 'latest_items_nb' in your Locomotive initializer."
self.settings.latest_items_nb
end
def multi_sites?
self.multi_sites != false
end