Created
October 20, 2011 17:25
-
-
Save kristiankristensen/1301723 to your computer and use it in GitHub Desktop.
Rails generators and initializers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tweethook' | |
TweetHook::Config.track_keywords = Array['bieber'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails/generators' | |
require 'tweethook' | |
class TweethookGenerator < Rails::Generators::Base | |
self.source_paths << File.join(File.dirname(__FILE__), 'templates') | |
def create_initializer | |
template 'initializer', 'config/initializers/tweethook.rb' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment