Module: Zena::Use::Kpath::ClassMethods

Defined in:
lib/zena/use/kpath.rb

Instance Method Summary collapse

Instance Method Details

#kselObject

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_conditionObject

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