If Rails 3.1 is present private_pub will use the asset pipeline to add the JavaScript in.
This is similar to how say jquery-rails or kaminari pulls in their assets/views.
This also makes it easier to update the JavaScript from a development standpoint and
end-user standpoint. :)
Just include the new JS in a new version of the gem and Rails 3.1 users
will get the updates. No need to re-run the generator.
If Rails 3.1 is present private_pub will use the asset pipeline to add the JavaScript in. This is similar to how say jquery-rails or kaminari pulls in their assets/views.
This also makes it easier to update the JavaScript from a development standpoint and end-user standpoint. :)
Just include the new JS in a new version of the gem and Rails 3.1 users will get the updates. No need to re-run the generator.