colszowka / phantomjs-gem

Phantomjs via Rubygems: Auto-install phantomjs on demand for current platform. Comes with poltergeist integration.
Other
222 stars 104 forks source link

Make base_dir configureable. #28

Closed kofno closed 10 years ago

kofno commented 10 years ago

For my Rails apps, I want to be able to run phantomjs out of the vendor directory. This change makes that very easy:

1) Create an initializer; config/initializers/phantomjs.rb 2) Set the base_dir: Phantomjs.base_dir = Rails.root.join('vendor', 'phantomjs')

jabr commented 10 years ago

Resolved.