Class: Alchemy::FoldedPage
- Inherits:
-
BaseRecord
- Object
- ActiveRecord::Base
- BaseRecord
- Alchemy::FoldedPage
- Defined in:
- app/models/alchemy/folded_page.rb
Constant Summary
Constants included from SearchableResource
SearchableResource::SEARCHABLE_COLUMN_TYPES
Class Method Summary collapse
Methods included from SearchableResource
#ransackable_associations, #ransackable_attributes, #ransortable_attributes
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 |