lib/hancock_cms.rb in hancock_cms-2.0.0.1 vs lib/hancock_cms.rb in hancock_cms-2.0.0.2
- old
+ new
@@ -74,10 +74,10 @@
def register_model(model)
Hancock::MODELS << model unless Hancock::MODELS.include?(model)
end
def register_plugin(plugin)
- Hancock::PLUGINS << plugin unless Hancock::MODELS.include?(plugin)
+ Hancock::PLUGINS << plugin unless Hancock::PLUGINS.include?(plugin)
end
def clear_history_from_empty_objects
::HistoryTracker.all.map do |h|
begin