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 +3 -0
- data/VERSION +1 -1
- data/lib/maintain/backend/active_record.rb +0 -1
- metadata +1 -1
data/CHANGES
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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)
|