toretore/babilu — Issue #9: Fix Railtie
Author: meniku
Created: 2012-01-17 15:41:51+00:00
State: open

In some configurations "rails server" refuses to start with: "/Users/nkuebler/projects/viewr/vendor/plugins/babilu/lib/babilu.rb:51:in `block in ': You have a nil object when you didn't expect it! (NoMethodError)"

A possible fix is to change 'balibu.rb' from

```
class Railtie < Rails::Railtie
config.before_configuration do
config.action_view.javascript_expansions[:defaults] ||= [] << 'locales'
end
end if defined?(Rails::Railtie)
```

to

```
class Railtie < Rails::Railtie
config.before_configuration do
config.action_view.javascript_expansions ||= {}
config.action_view.javascript_expansions[:defaults] ||= [] << 'locales'
end
end if defined?(Rails::Railtie)
```