Module: VestalVersions::Control

Defined in:
lib/vestal_versions/control.rb

Overview

The control feature allows use of several code blocks that provide finer control over whether a new version is created, or a previous version is updated.

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



5
6
7
8
9
10
11
12
# File 'lib/vestal_versions/control.rb', line 5

def self.included(base) # :nodoc:
  base.class_eval do
    include InstanceMethods

    alias_method_chain :create_version?, :control
    alias_method_chain :update_version?, :control
  end
end