Method: Zena::Use::QueryNode::Compiler#process_attr
- Defined in:
- lib/zena/use/query_node.rb
#process_attr(attribute) ⇒ Object
164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/zena/use/query_node.rb', line 164 def process_attr(attribute) case attribute when 'project_id', 'section_id', 'discussion_id' # Special accessor insert_bind "#{node_name}.get_#{attribute}" when 'id', 'parent_id' # Not RubyLess safe insert_bind "#{node_name}.#{attribute}" else # Use RubyLess super end end |