Module: HasHierarchy::CounterCache
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/has_hierarchy/counter_cache.rb
Instance Method Summary collapse
Instance Method Details
#leaf? ⇒ Boolean
10 11 12 |
# File 'lib/has_hierarchy/counter_cache.rb', line 10 def leaf? self[children_count_column] == 0 end |