Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove facebook generator

  • Loading branch information...
commit 8aa00f546286e9f29c08360651237516a888ab77 1 parent 07c7f8d
@astevens authored
View
1  lib/generators/acts_as_opengraph/USAGE
@@ -1 +0,0 @@
-rails generate acts_as_opengraph
View
17 lib/generators/acts_as_opengraph/acts_as_opengraph_generator.rb
@@ -1,17 +0,0 @@
-require 'rails/generators'
-
-class ActsAsOpengraphGenerator < Rails::Generators::Base
-
- def self.source_root
- File.join(File.dirname(__FILE__), 'templates')
- end
-
- def create_config
- copy_file "config/facebook.yml", "config/facebook.yml"
- end
-
- def create_initializer
- copy_file "initializers/acts_as_opengraph.rb", "config/initializers/acts_as_opengraph.rb"
- end
-
-end
View
8 lib/generators/acts_as_opengraph/templates/config/facebook.yml
@@ -1,8 +0,0 @@
-development:
- appId: FACEBOOK_DEV_APP_ID
-
-test:
- appId: FACEBOOK_TEST_APP_ID
-
-production:
- appId: FACEBOOK_PRODUCTION_APP_ID
View
2  lib/generators/acts_as_opengraph/templates/initializers/acts_as_opengraph.rb
@@ -1,2 +0,0 @@
-raw_config = File.read(::Rails.root.to_s. + "/config/facebook.yml")
-FACEBOOK_CONFIG = YAML.load(raw_config)[::Rails.env].symbolize_keys

0 comments on commit 8aa00f5

Please sign in to comment.
Something went wrong with that request. Please try again.