Class: BigbluebuttonMeeting
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BigbluebuttonMeeting
- Includes:
- ActiveModel::ForbiddenAttributesProtection
- Defined in:
- app/models/bigbluebutton_meeting.rb
Instance Method Summary collapse
-
#created_by?(user) ⇒ Boolean
Whether the meeting was created by the ‘user` or not.
Instance Method Details
#created_by?(user) ⇒ Boolean
Whether the meeting was created by the ‘user` or not.
19 20 21 22 23 24 25 26 |
# File 'app/models/bigbluebutton_meeting.rb', line 19 def created_by?(user) unless user.nil? userid = user.send(BigbluebuttonRails.configuration.user_attr_id) self.creator_id == userid else false end end |