samleb/sexy_scopes

View on GitHub
lib/sexy_scopes/arel/typecasting.rb

Summary

Maintainability
A
0 mins
Test Coverage
module SexyScopes
  module Arel
    module Typecasting
      def *(other)
        super SexyScopes.type_cast(other, self)
      end

      def +(other)
        super SexyScopes.type_cast(other, self)
      end

      def -(other)
        super SexyScopes.type_cast(other, self)
      end

      def /(other)
        super SexyScopes.type_cast(other, self)
      end
    end
  end
end