Module: SocialStream::Views::Settings::Events

Defined in:
lib/social_stream/views/settings/events.rb

Instance Method Summary collapse

Instance Method Details

#settings_itemsObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/social_stream/views/settings/events.rb', line 5

def settings_items
  super.tap do |items|
    if current_subject.is_a?(Group)
      items.insert_before 'notifications', {
        :key  => 'rooms',
        :html => render(:partial => 'rooms/settings')
      }
    end
  end
end