Module: VestalVersions::Conditions
- Defined in:
- lib/vestal_versions/conditions.rb
Overview
Allows version creation to occur conditionally based on given :if
and/or :unless
options.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vestal_versions/conditions.rb', line 5 def self.included(base) # :nodoc: base.class_eval do extend ClassMethods include InstanceMethods alias_method_chain :create_version?, :conditions alias_method_chain :update_version?, :conditions class << self alias_method_chain :prepare_versioned_options, :conditions end end end |