couch_potato-rails2 0.5.8 → 0.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,14 @@
1
- require 'active_support/concern'
2
- require 'active_model/callbacks'
3
-
4
1
  module CouchPotato
5
2
  module Persistence
6
3
  module Callbacks
7
4
  def self.included(base) #:nodoc:
8
- base.extend ActiveModel::Callbacks
9
5
 
10
6
  base.class_eval do
11
7
  attr_accessor :skip_callbacks
12
8
 
13
9
  define_model_callbacks :create, :save, :update, :destroy
14
10
  define_model_callbacks *[:save, :create, :update].map {|c| :"validation_on_#{c}"}
15
- define_model_callbacks :validation unless Config.validation_framework == :active_model
11
+ define_model_callbacks :validation
16
12
  end
17
13
  end
18
14
 
@@ -1,3 +1,3 @@
1
1
  module CouchPotato
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: couch_potato-rails2
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.8
5
+ version: 0.5.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexander Lang