Module: Spreadhead::Page::Scopes
- Defined in:
- lib/spreadhead/page.rb
Class Method Summary collapse
-
.included(model) ⇒ Object
Hook for scopes.
Class Method Details
.included(model) ⇒ Object
Hook for scopes.
:published should have its own scope
49 50 51 52 53 |
# File 'lib/spreadhead/page.rb', line 49 def self.included(model) model.class_eval do named_scope :published, :conditions => ['published = ?', true] end end |