lib/shamu/services/service.rb in shamu-0.0.20 vs lib/shamu/services/service.rb in shamu-0.0.21
- old
+ new
@@ -338,16 +338,8 @@
Result.new.tap do |r|
r.errors.add( *args )
end
end
- # @param [String,Integer,#to_model_id] value
- # @return [Boolean] true if the value looks like an ID.
- def model_id?( value )
- case Array( value ).first
- when Integer then true
- when String then ToModelIdExtension::Strings::NUMERIC_PATTERN =~ value
- end
- end
end
end
end