add a message for deprecated config option
This commit is contained in:
parent
1a5050a0c1
commit
7aadd9d129
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user