Skip to content

Instantly share code, notes, and snippets.

@SergeyKishenin
Last active December 28, 2015 03:49
Show Gist options
  • Save SergeyKishenin/7437471 to your computer and use it in GitHub Desktop.
Save SergeyKishenin/7437471 to your computer and use it in GitHub Desktop.
How to use bower-rails gem's rake tasks in a Rails engine
spec = Gem::Specification.find_by_name 'bower-rails'
require "#{spec.gem_dir}/lib/tasks/helpers/before_hook.rb"
load "#{spec.gem_dir}/lib/tasks/bower.rake"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment