Sha256: 96b7651b3e49977c4dc23a8d87bdcf4bcdd0898a583b0d0b231b8666bd3d2904

Contents?: true

Size: 256 Bytes

Versions: 29

Compression:

Stored size: 256 Bytes

Contents

module SocialStream
  module Views
    module Settings
      class ItemList < Array
        def insert_before key, obj
          position = index{ |i| i[:key] == 'notifications' } + 1

          insert position, obj
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
social_stream-0.16.1 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.11.0 lib/social_stream/views/settings/item_list.rb
social_stream-0.15.8 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.11 lib/social_stream/views/settings/item_list.rb
social_stream-0.15.7 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.10 lib/social_stream/views/settings/item_list.rb
social_stream-0.15.6 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.9 lib/social_stream/views/settings/item_list.rb
social_stream-0.15.5 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.8 lib/social_stream/views/settings/item_list.rb
social_stream-0.15.4 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.7 lib/social_stream/views/settings/item_list.rb
social_stream-0.15.1 base/lib/social_stream/views/settings/item_list.rb
social_stream-0.15.0 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.6 lib/social_stream/views/settings/item_list.rb
social_stream-0.14.1 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.5 lib/social_stream/views/settings/item_list.rb
social_stream-0.14.0 base/lib/social_stream/views/settings/item_list.rb
social_stream-base-0.10.4 lib/social_stream/views/settings/item_list.rb
social_stream-0.13.3 base/lib/social_stream/views/settings/item_list.rb