lib/active_enumerable/scopes.rb in active_enumerable-0.2.0 vs lib/active_enumerable/scopes.rb in active_enumerable-1.0.0
- old
+ new
@@ -7,15 +7,11 @@
else
super
end
end
- def respond_to_missing?(meth, include_private = false)
- if create_scope_method(meth)
- true
- else
- super
- end
+ def respond_to_missing?(meth, _include_private = false)
+ create_scope_method(meth)
end
def create_scope_method(meth)
if (scope = self.class.__scoped_methods__.find { |a| a.first == meth })
self.define_singleton_method(scope.first) do