Class: Monologue::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Monologue::User
- Defined in:
- app/models/monologue/user.rb
Instance Method Summary collapse
Instance Method Details
#can_delete?(user) ⇒ Boolean
11 12 13 14 15 |
# File 'app/models/monologue/user.rb', line 11 def can_delete?(user) return false if self==user return false if user.posts.any? true end |