Sha256: a5d363cc709afbb4b5b773c59cb7f6f4cf38fed6e6bf6e4070f341d952c1b562

Contents?: true

Size: 415 Bytes

Versions: 7

Compression:

Stored size: 415 Bytes

Contents

module OmniauthRenren
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    def copy_files
      copy_file 'public/xd_receiver.html'
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
omniauth_china-0.1.1 lib/generators/omniauth_renren/install/install_generator.rb
omniauth_china-0.1.0 lib/generators/omniauth_renren/install/install_generator.rb
omniauth_china-0.0.7 lib/generators/omniauth_renren/install/install_generator.rb
omniauth_china-0.0.6 lib/generators/omniauth_renren/install/install_generator.rb
omniauth_china-0.0.5 lib/generators/omniauth_renren/install/install_generator.rb
omniauth_china-0.0.4.beta1 lib/generators/omniauth_renren/install/install_generator.rb
omniauth_china-0.0.4 lib/generators/omniauth_renren/install/install_generator.rb