Class: OmniauthRenren::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/omniauth_renren/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



5
6
7
# File 'lib/generators/omniauth_renren/install/install_generator.rb', line 5

def copy_files
  copy_file 'public/xd_receiver.html'
end

#include_helperObject



9
10
11
12
13
# File 'lib/generators/omniauth_renren/install/install_generator.rb', line 9

def include_helper
  inject_into_file 'app/helpers/application_helper.rb', :after => "module ApplicationHelper\n" do
    "  include OmniAuth::Strategies::Renren::Helper\n"
  end
end