module XapianDb::ModelExtenders::ActiveRecord
Public Instance Methods
inherited(klass)
click to toggle source
Calls superclass method
# File lib/xapian_db/model_extenders/active_record.rb 4 def inherited(klass) 5 super 6 if XapianDb::DocumentBlueprint.configured? klass.name 7 blueprint = XapianDb::DocumentBlueprint.blueprint_for klass.name 8 blueprint._adapter.add_class_helper_methods_to klass 9 end 10 end