survey/app/models/survey_question_radiogroup.rb

13 lines
285 B
Ruby

class SurveyQuestionRadiogroup
include Mongoid::Document
include Mongoid::Attributes::Dynamic
field :name, :localize => true
embedded_in :survey_question
#def attributes()
# tmp = super()
# tmp.merge({name_translations: tmp[:name], qid: tmp[:_id].to_s})
#end
end