lib/rrj/models/mongoid.rb in ruby_rabbitmq_janus-2.7.2.pre.312 vs lib/rrj/models/mongoid.rb in ruby_rabbitmq_janus-2.7.2.pre.314
- old
+ new
@@ -6,23 +6,15 @@
#
# Store instance information for MongoID database
class JanusInstance
include Mongoid::Document
include RubyRabbitmqJanus::Models::Instances
- # include RubyRabbitmqJanus::Models::Methods
- # include RubyRabbitmqJanus::Models::Callbacks
include RubyRabbitmqJanus::Models::Validations
field :name, type: String, as: :title
field :session, type: Integer, as: :session_id
field :enable, type: Boolean
- field :thread, type: Integer, as: :thread_id
- field :thread_adm, type: Integer, as: :thread_id_adm
alias_attribute :instance, :_id
-
- # set_callback(:create, :after) { callback_create_after }
- # set_callback(:update, :after) { callback_update_after }
- # set_callback(:destroy, :after) { callback_destroy_after }
end
end
end