plugins/adva_cells/vendor/plugins/cells/lib/cell.rb
# Find possible files that belong to the state.  This first tries the cell's
# <tt>#view_for_state</tt> method and if that returns a true value, it
# will accept that value as a string and interpret it as a pathname for
# the view file. If it returns a falsy value, it will call the Cell's class
# method find_class_view_for_state to determine the file to check.
#
# You can override the Cell::Base#view_for_state method for a particular
# cell if you wish to make it decide dynamically what file to render.
Find possible files that belong to the state.  This first tries the cell's
#view_for_state method and if that returns a true value, it
will accept that value as a string and interpret it as a pathname for
the view file. If it returns a falsy value, it will call the Cell's class
method find_class_view_for_state to determine the file to check.

You can override the Cell::Base#view_for_state method for a particular
cell if you wish to make it decide dynamically what file to render.
Find possible files that belong to the state . This first tries the cell ' s #view_for_state method and if that returns a true value it will accept that value as a string and interpret it as a pathname for the view file . If it returns a falsy value it will call the Cell ' s class method find_class_view_for_state to determine the file to check . You can override the Cell :: Base#view_for_state method for a particular cell if you wish to make it decide dynamically what file to render .
def possible_paths_for_state(state)
      if view_file = view_for_state(state) 
        return [view_file]
      end
      self.class.find_class_view_for_state(state).reverse!
    end
def possible_paths_for_state ( state ) if view_file = view_for_state ( state ) return [ view_file ] end self . class . find_class_view_for_state ( state ) . reverse! end
Find possible files that belong to the state.
Find possible files that belong to the state .
# instance.
state