23 lines
591 B
Ruby
23 lines
591 B
Ruby
class Activity
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
#include Mongoid::Attributes::Dynamic
|
|
#include Admin::PersonalActivitiesHelper
|
|
include OrbitModel::Status
|
|
include MemberHelper
|
|
#include Slug
|
|
|
|
# Language
|
|
field :activity_name, type: String, localize: true
|
|
field :activity_organizer, type: String, localize: true
|
|
field :activity_area, type: String, localize: true
|
|
|
|
# Basic
|
|
field :year, type: String
|
|
field :activity_start_date, type: DateTime
|
|
field :activity_end_date, type: DateTime
|
|
field :note, type: String
|
|
|
|
belongs_to :member_profile
|
|
end
|