Sha256: 05a437ce31f78bc17ab9460121cc90c5a238baea4b61b71ab9e735a14002d165

Contents?: true

Size: 243 Bytes

Versions: 12

Compression:

Stored size: 243 Bytes

Contents

class WhowishWord
  include Mongoid::Document
  
  field :word_id,:type=>String
  field :content, :type=>String
  
  key :word_id
  
  def self.generate_word_id(page_id,id,locale)
    "#{page_id}:#{id}(#{locale})".downcase
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
whowish_word-0.2.1 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.2.0 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.9 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.8 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.7 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.6 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.5 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.4 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.3 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.2 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.1 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb
whowish_word-0.1.0 lib/legacy/whowish_word/lib/app/models/mongodb/whowish_word.rb