Sha256: d9e42bfaaf3d183a1294f56426886c77884277dfb38ec64e0f14892052595382

Contents?: true

Size: 488 Bytes

Versions: 121

Compression:

Stored size: 488 Bytes

Contents

module SocialStream
  module Views
    module Settings
      module Presence
        def settings_items
          super.tap do |items|
            if SocialStream::Presence.enable
              if current_subject == current_user
                items.insert_before 'notifications', {
                  :key  => 'chat',
                  :html => render(:partial => "chat/settings")
                }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

121 entries across 121 versions & 3 rubygems

Version Path
social_stream-presence-0.6.0 lib/social_stream/views/settings/presence.rb
social_stream-presence-0.5.4 lib/social_stream/views/settings/presence.rb
social_stream-presence-0.5.3 lib/social_stream/views/settings/presence.rb
social_stream-0.19.3 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.5.2 lib/social_stream/views/settings/presence.rb
social_stream-0.19.2 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.19.1 presence/lib/social_stream/views/settings/presence.rb
vkhater-social_stream-0.16.3.3 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.19.0 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.5.0 lib/social_stream/views/settings/presence.rb
social_stream-0.18.2 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.18.1 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.18.0 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.4.0 lib/social_stream/views/settings/presence.rb
social_stream-0.17.1 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.17.0 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.3.0 lib/social_stream/views/settings/presence.rb
social_stream-0.16.3 presence/lib/social_stream/views/settings/presence.rb
social_stream-0.16.2 presence/lib/social_stream/views/settings/presence.rb
social_stream-presence-0.2.1 lib/social_stream/views/settings/presence.rb