2012-02-06 07:23:27 +00:00
|
|
|
class BulletinLink
|
|
|
|
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
field :url
|
2012-03-14 12:05:03 +00:00
|
|
|
# field :name
|
|
|
|
|
|
|
|
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
|
2012-02-06 07:23:27 +00:00
|
|
|
|
|
|
|
field :should_destroy, :type => Boolean
|
|
|
|
|
2012-03-14 12:05:03 +00:00
|
|
|
# embedded_in :bulletin
|
|
|
|
belongs_to :bulletin
|
2012-02-06 07:23:27 +00:00
|
|
|
end
|