public
Description: A Rails plugin to work with the Bebo API
Homepage: http://www.intridea.com/2008/1/11/beboist-a-rails-plugin-for-the-bebo-social-api
Clone URL: git://github.com/skyfallsin/beboist.git
beboist / install.rb
100644 14 lines (12 sloc) 0.517 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Install hook code here
RAILS_ENV ||= ENV["RAILS_ENV"]
file = File.join(RAILS_ROOT, "config", "bebo.yml")
env_settings = YAML.load(File.open(file))[RAILS_ENV]
ENV["BEBO_CALLBACK_PATH"] = env_settings["callback_path"]
 
require 'bebo_connection'
require 'bebo_controller_extensions'
require 'bebo_view_extensions'
require 'bebo_routing_extensions'
require 'bebo_api'
 
ActionController::Base.send(:include, BeboControllerExtensions)
ActionView::Helpers::AssetTagHelper.send(:include, BeboViewExtensions::AssetTagHelper)