3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/generators/derail/devise/devise_generator.rb', line 3
def install_devise
inject_into_file "Gemfile", <<-RUBY.dedent, :before => "group :development"
# Authentication
# FIXME: Until at least controller inheritence is available
gem 'devise', :git => 'git://github.com/sj26/devise.git', :branch => 'template-inheritence'
RUBY
inject_into_file "Gemfile", <<-RUBY.redent(2), :after => /gem (['"])remarkable_activerecord\1[^\n]*\n/
gem 'remarkable_devise', :git => 'git://github.com/sj26/remarkable_devise.git'
RUBY
puts __FILE__, Dir.pwd, ENV.inspect
bundle "install"
end
|