lib/core/core_setup_init.rb
# return true if there is a need to move the element before/after
return true if there is a need to move the element before/after
return true if there is a need to move the element before / after
def _setup_reorganize_so_befaft_move?(where, meta, attrs, attr_name)
      element = meta[where]
      element = nil unless (attrs - [attr_name]).include?(element)
      cur = attrs.index(attr_name)
      return (element && cur < attrs.index(element)) if where == :after
      (element && cur > attrs.index(element))
    end
def _setup_reorganize_so_befaft_move? ( where , meta , attrs , attr_name ) element = meta [ where ] element = nil unless ( attrs - [ attr_name ] ) . include? ( element ) cur = attrs . index ( attr_name ) return ( element && cur < attrs . index ( element ) ) if where == :after ( element && cur > attrs . index ( element ) ) end
return true if there is a need to move the element before/after
return true if there is a need to move the element before / after
where
<not_specific>
meta
<not_specific>
attrs
<not_specific>
attr_name
<not_specific>