Module: Cms::Behaviors::Publishing

Defined in:
lib/cms/behaviors/publishing.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, MacroMethods

Class Method Summary collapse

Class Method Details

.included(model_class) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/cms/behaviors/publishing.rb', line 4

def self.included(model_class)
  model_class.extend(MacroMethods)
  model_class.class_eval do
    def publishable?
      false
    end
  end
end