funkensturm / acts_as_category
- Source
- Commits
- Network (13)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
80ab530
acts_as_category / init.rb
| 80ab5301 » | funkensturm | 2009-02-14 | 1 | plugin_path = File.dirname __FILE__ | |
| 2 | |||||
| 3 | # Loading localization files | ||||
| 4 | I18n.load_path += Dir[File.join(plugin_path, 'config', 'locale', '*.{rb,yml}')] | ||||
| 5 | |||||
| 6 | # Loading Helper | ||||
| 7 | ActionView::Base.class_eval 'include ActsAsCategoryHelper' | ||||
| 8 | |||||
| 9 | # Loading acts_as_* | ||||
| 10 | ActiveRecord::Base.class_eval 'include ActiveRecord::Acts::Category' | ||||
| 11 | ActiveRecord::Base.class_eval 'include ActiveRecord::Acts::CategoryContent' | ||||
