这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/acts_as_indexed/class_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def acts_as_indexed(options = {})
end

# Add the Rails environment and this model's name to the index file path.
self.aai_config.index_file = self.aai_config.index_file.join(Rails.env, self.name)
self.aai_config.index_file = self.aai_config.index_file.join(Rails.env, self.name.underscore)
end

# Adds the passed +record+ to the index. Index is built if it does not already exist. Clears the query cache.
Expand Down