Replace the spam observer with simple after_save callbacks
This commit is contained in:
parent
2dc7c505fd
commit
ac1f210736
5 changed files with 19 additions and 20 deletions
|
@ -32,11 +32,6 @@ module OpenStreetMap
|
|||
# :all can be used as a placeholder for all plugins not explicitly named.
|
||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
||||
|
||||
# Activate observers that should always be running.
|
||||
unless STATUS == :database_offline
|
||||
config.active_record.observers = :spam_observer
|
||||
end
|
||||
|
||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||
# config.time_zone = 'Central Time (US & Canada)'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue