Module: Sequel::SequelFixes
- Defined in:
- lib/engine2/post_bootstrap.rb
Class Method Summary collapse
Class Method Details
.fix_aliased_expression(ds) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/engine2/post_bootstrap.rb', line 6 def self.fix_aliased_expression ds ds.get_opts[:select].map do |sel| case sel when Sequel::SQL::QualifiedIdentifier sel.column when Sequel::SQL::AliasedExpression Sequel::SQL::Identifier.new sel.alias else sel # symbol ? end end end |