public
Created

Example User model for Inboxes gem

  • Download Gist
user.rb
Ruby
1 2 3 4 5 6 7 8 9 10
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
 
attr_accessible :email, :password, :password_confirmation, :remember_me, :name
validates :name, :presence => true, :uniqueness => true
inboxes
end

Must be...

class User < ActiveRecord::Base
has_inboxes
end

I think you should change inboxes method to be has_inboxes, since the documentation for inboxes refers to this gist.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.