Module: SidebarHelper

Includes:
SocialStream::Views::Sidebar
Defined in:
app/helpers/sidebar_helper.rb

Instance Method Summary collapse

Instance Method Details



4
5
6
7
8
9
# File 'app/helpers/sidebar_helper.rb', line 4

def sidebar type = nil
  content_for :sidebar,
              sidebar_items(type).inject(ActiveSupport::SafeBuffer.new){ |result, item|
    result + item[:html]
  }
end