Module: Zena::Use::Kpath::ClassMethods
- Defined in:
- lib/zena/use/kpath.rb
Instance Method Summary collapse
-
#ksel ⇒ Object
kpath selector for the current class.
-
#type_condition ⇒ Object
Replace Rails subclasses normal behavior.
Instance Method Details
#ksel ⇒ Object
kpath selector for the current class
6 7 8 |
# File 'lib/zena/use/kpath.rb', line 6 def ksel self.to_s[0..0] end |
#type_condition ⇒ Object
Replace Rails subclasses normal behavior
11 12 13 |
# File 'lib/zena/use/kpath.rb', line 11 def type_condition " #{table_name}.kpath LIKE '#{kpath}%' " end |