Module: XapianDb::ModelExtenders::ActiveRecord
- Defined in:
- lib/xapian_db/model_extenders/active_record.rb
Instance Method Summary collapse
Instance Method Details
#inherited(klass) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/xapian_db/model_extenders/active_record.rb', line 4 def inherited(klass) super if XapianDb::DocumentBlueprint.configured? klass.name blueprint = XapianDb::DocumentBlueprint.blueprint_for klass.name blueprint._adapter.add_class_helper_methods_to klass end end |