2011-01-31 22:22:47 +00:00
|
|
|
module Flowplayer
|
|
|
|
require 'rails'
|
2011-02-01 21:03:28 +00:00
|
|
|
require File.join(File.expand_path('../', __FILE__), 'railties/helper')
|
2011-01-31 22:22:47 +00:00
|
|
|
class Railtie < ::Rails::Railtie
|
|
|
|
generators do
|
2011-02-01 21:03:28 +00:00
|
|
|
require File.join(File.expand_path('../', __FILE__), 'railties', 'generator', 'install_generator.rb')
|
|
|
|
end
|
|
|
|
initializer "flowplayer.configure_rails_initialization" do
|
2011-02-01 22:58:56 +00:00
|
|
|
ActionController::Base.instance_eval do
|
|
|
|
helper Flowplayer::Helper
|
|
|
|
end
|
2011-01-31 22:22:47 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|