Permalink
Browse files

removed unused association_class instance var

  • Loading branch information...
1 parent 72d5280 commit 867cc2605c145716f0c23694f29b672ce6b11722 @chromeragnarok committed Mar 28, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 lib/tire/model/indexing.rb
  2. +1 −1 test/integration/active_model_indexing_test.rb
@@ -78,8 +78,6 @@ def mapping(*args)
#
def indexes(name, options = {}, &block)
if block_given?
- @association_class = options[:class] if options[:class]
- options.delete(:class)
mapping[name] ||= { :type => 'object', :properties => {} }.update(options)
@_nested_mapping = name
nested = yield
@@ -38,7 +38,7 @@ class ::ActiveModelArticleWithAssociation < ActiveRecord::Base
mapping do
indexes :title
indexes :content
- indexes :associated_model, :class => AssociatedModel do
+ indexes :associated_model do
indexes :first_name
end
end

0 comments on commit 867cc26

Please sign in to comment.