diff --git a/lib/alchemy/on_page_layout.rb b/lib/alchemy/on_page_layout.rb index 3935d86c39..a17c4d966d 100644 --- a/lib/alchemy/on_page_layout.rb +++ b/lib/alchemy/on_page_layout.rb @@ -47,7 +47,7 @@ def self.callbacks # Registers a callback for given page layout def self.register_callback(page_layout, callback) @callbacks ||= {} - @callbacks[page_layout] ||= [] + @callbacks[page_layout] ||= Set.new @callbacks[page_layout] << callback end