reactjs/react-rails — pull request #61 by sjltaylor (2014-07-08 09:58:23+00:00)
Title: Prevent a NameError when loading outside of Rails

When running `bundle console` we get this error:

```
: bundle console
Resolving dependencies...
/Users/sjltaylor/Dropbox/projects/red-badger/bskyb-commerce/react-rails/lib/react/rails/view_helper.rb:27:in `': uninitialized constant ActionView (NameError)
...
```

I could have also checked with `defined? ActionView::Base` before including, but this would mean that if `ActionView::Base` was defined elsewhere later, the react rails helpers would not be included.