Sha256: f041177ea70c3161ea5472b3e9baa67da9e4d7cc06dd3662e2dd41839d373432

Contents?: true

Size: 345 Bytes

Versions: 35

Compression:

Stored size: 345 Bytes

Contents

module XapianDb
  module ModelExtenders
    module ActiveRecord
      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
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
xapian_db-1.3.15 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.14 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.13 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.12 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.11 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.10 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.9 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.8 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.7.4 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.7.3 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.7.2 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.7.1 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.7 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.5.4 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.5.3 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.5.2 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.5.1 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.5 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.4 lib/xapian_db/model_extenders/active_record.rb
xapian_db-1.3.3.1 lib/xapian_db/model_extenders/active_record.rb