Class: Alchemy::FoldedPage

Inherits:
BaseRecord
  • Object
show all
Defined in:
app/models/alchemy/folded_page.rb

Class Method Summary collapse

Class Method Details

.folded_for_user(user) ⇒ Object


18
19
20
21
22
# File 'app/models/alchemy/folded_page.rb', line 18

def self.folded_for_user(user)
  return none unless Alchemy.user_class < ActiveRecord::Base

  where(user: user, folded: true)
end