railsdog/deface — Issue #16: Redefining overrides failed on 0.7.1 and 0.7.2
Author: wandtasie
Created: 2011-12-01 17:17:36+00:00
State: open

Hi, it's Matthias

After bundle upgrade which contained the new versions of deface I got the following error after rails s:

=> Booting WEBrick
=> Rails 3.1.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/deface-0.7.1/lib/deface/override.rb:98:in `initialize': :action is invalid (ArgumentError)
from /path/to/railsapp/app/overrides/test_override_without_action.rb:1:in `new'
from /path/to/railsapp/app/overrides/test_override_without_action.rb:1
from /usr/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load'
...

using the following code:

Deface::Override.new(:virtual_path => 'existing/path',
:name => 'existing_override_name_from_extension',
:disable => true)

This error appears with existing and nonexisting override name and on deface 0.7.1 and 0.7.2

If i add an empty insert_top and empty text it works again so its not a big problem.

Thanks

Matthias

Ps: Great Gem