Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/twitter/rails/initializer.rb
Class Method Summary collapse
Class Method Details
.inherited_with_twitter(subclass) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/twitter/rails/initializer.rb', line 19 def inherited_with_twitter(subclass) inherited_without_twitter(subclass) if subclass.to_s == "ApplicationController" subclass.class_eval do include Twitter::Rails::Controller helper Twitter::Rails::Helpers end end end |