lib/pragma/operation/defaults.rb in pragma-0.1.1 vs lib/pragma/operation/defaults.rb in pragma-0.1.2

- old
+ new

@@ -63,10 +63,10 @@ (name.split('::')[0..-3] << 'Policy').join('::') end def computed_contract_klass name_parts = name.split('::') - (name_parts[0..-3] << 'Decorator' << name_parts.last).join('::') + (name_parts[0..-3] << 'Contract' << name_parts.last).join('::') end def class_exists?(klass) Object.const_get(klass) true