Module: Acts::As::Publishable

Defined in:
lib/acts_as_publishable/acts_as_publishable.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


5
6
7
8
9
10
# File 'lib/acts_as_publishable/acts_as_publishable.rb', line 5

def self.included(base)
  base.extend(ClassMethods)
  
  # All ActiveRecords will now respond to publishable? with false
  def publishable?; false; end
end

Instance Method Details

#publishable?Boolean

All ActiveRecords will now respond to publishable? with false


9
# File 'lib/acts_as_publishable/acts_as_publishable.rb', line 9

def publishable?; false; end