lib/active_scaffold/data_structures/action_links.rb
# iterates over the links, possibly by type
iterates over the links, possibly by type
iterates over the links possibly by type
def each(options = {}, &block)
      method = options[:reverse] ? :reverse_each : :each
      @set.sort_by(&:weight).send(method) do |item|
        if item.is_a?(ActiveScaffold::DataStructures::ActionLinks) && !options[:groups]
          item.each(options, &block)
        elsif options[:include_set]
          yield item, @set
        else
          yield item
        end
      end
    end
def each ( options = { } , & block ) method = options [ :reverse ] ? :reverse_each : :each @set . sort_by ( & :weight ) . send ( method ) do | item | if item . is_a? ( ActiveScaffold :: DataStructures :: ActionLinks ) && ! options [ :groups ] item . each ( options , & block ) elsif options [ :include_set ] yield item , @set else yield item end end end
iterates over the links, possibly by type
iterates over the links possibly by type
options
<not_specific>
block
<not_specific>