plugins/adva_cells/vendor/plugins/cells/lib/cell.rb
# Climbs up the inheritance hierarchy of the Cell, looking for a view
# for the current <tt>state</tt> in each level.
# As soon as a view file is found it is returned as an ActionView::Template
# instance.
Climbs up the inheritance hierarchy of the Cell, looking for a view
for the current state in each level.
As soon as a view file is found it is returned as an ActionView::Template
instance.
Climbs up the inheritance hierarchy of the Cell looking for a view for the current state in each level . As soon as a view file is found it is returned as an ActionView :: Template instance .
def find_family_view_for_state(state, action_view)
      possible_paths_for_state(state).each do |template_path|
        if view = action_view.try_picking_template_for_path(template_path)
          return view
        end
      end
      nil
    end
def find_family_view_for_state ( state , action_view ) possible_paths_for_state ( state ) . each do | template_path | if view = action_view . try_picking_template_for_path ( template_path ) return view end end nil end
Climbs up the inheritance hierarchy of the Cell, looking for a view
for the current <tt>state</tt> in each level.
Climbs up the inheritance hierarchy of the Cell looking for a view for the current <tt > state< / tt > in each level .
state
action_view