Module: Cms::Behaviors::Publishing::MacroMethods
- Defined in:
- lib/cms/behaviors/publishing.rb
Instance Method Summary collapse
Instance Method Details
#is_publishable(options = {}) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cms/behaviors/publishing.rb', line 16 def is_publishable(={}) @is_publishable = true extend ClassMethods include InstanceMethods attr_accessor :publish_on_save after_save :publish_for_non_versioned named_scope :published, :conditions => {:published => true} named_scope :unpublished, :conditions => {:published => false} end |
#publishable? ⇒ Boolean
13 14 15 |
# File 'lib/cms/behaviors/publishing.rb', line 13 def publishable? !!@is_publishable end |