spec/dummy/config/initializers/commontator.rb~ in commontator-1.1.0 vs spec/dummy/config/initializers/commontator.rb~ in commontator-1.1.1

- old
+ new

@@ -9,12 +9,13 @@ config.current_user_method = 'current_user' # Proc that is called after any javascript runs (e.g. to display/clear flash messages) # It is passed the view_context object (self from the view template), so you should be able to # access anything you normally could in a view template (by using, e.g. view.flash) + # However, be aware that it does not have access to the main application's helpers # Should return a string containing JS to be appended to all Commontator JS responses - # Default: lambda { |view| '$("#error_explanation").hide();' } - config.javascript_proc = lambda { |view| 'Dummy Javascript' } + # Default: lambda { |view| '$("#error_explanation").remove();' } + config.javascript_proc = lambda { |view| '' } # User (acts_as_commontator) Configuration # The name used if the user's name cannot be retrieved