Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Commit

Permalink
TMP > Nested mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Jul 10, 2011
1 parent 648c77e commit 6473241
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tire/model/indexing.rb
Expand Up @@ -17,7 +17,12 @@ def mapping
end

def indexes(name, options = {})
# p "#{self}, SEARCH PROPERTY, #{name}"
# TODO: if block given, create hash ans store the mapping
# defined in the block:
# indexes :author do
# indexes :last_name, :type => ...
# end
#
mapping[name] = options
end

Expand Down

0 comments on commit 6473241

Please sign in to comment.