diff options
Diffstat (limited to 'lib/arel/algebra/extensions/symbol.rb')
-rw-r--r-- | lib/arel/algebra/extensions/symbol.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/algebra/extensions/symbol.rb b/lib/arel/algebra/extensions/symbol.rb new file mode 100644 index 0000000000..787867bdc3 --- /dev/null +++ b/lib/arel/algebra/extensions/symbol.rb @@ -0,0 +1,5 @@ +class Symbol + def to_attribute(relation) + Arel::Attribute.new(relation, self) + end +end
\ No newline at end of file |