lib/ninsho/railtie.rb in ninsho-0.0.1 vs lib/ninsho/railtie.rb in ninsho-0.0.2
- old
+ new
@@ -1,5 +1,8 @@
module Ninsho
+ # Responsible for loading and mounting the Ninsho::Interface method on
+ # ActiveRecord, which allows it to add the belongs_to_ninsho method
+ # inside models
class Railtie < Rails::Railtie
ActiveSupport.on_load :active_record do
ActiveRecord::Base.send :include, Ninsho::Interface
end
end