maintain 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 0.2.20
2
+ * Removed accidental debugging `puts` calls from ActiveRecord backend
3
+
1
4
  0.2.19
2
5
  * Added :force option to state and aggregate definitions, allowing you
3
6
  to force a method overwrite
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.19
1
+ 0.2.20
@@ -38,7 +38,6 @@ module Maintain
38
38
  def state(maintainee, name, attribute, value, options = {})
39
39
  options = {:dirty => true}.merge(options)
40
40
  conditions = {:conditions => {attribute => value}}
41
- puts "NAMING SCOPE: #{name} with #{conditions.inspect} "
42
41
  named_scope_method = defined?(::ActiveRecord::VERSION) && ::ActiveRecord::VERSION::STRING >= '3' ? :scope : :named_scope
43
42
  maintainee.send(named_scope_method, name, conditions) if !maintainee.respond_to?(name) || options[:force]
44
43
  maintainee.send(named_scope_method, "#{attribute}_#{name}", conditions)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: