lib/active_admin/resource/sidebars.rb in activeadmin-0.4.0 vs lib/active_admin/resource/sidebars.rb in activeadmin-0.4.1
- old
+ new
@@ -16,11 +16,11 @@
def clear_sidebar_sections!
@sidebar_sections = []
end
- def sidebar_sections_for(action)
- sidebar_sections.select{|section| section.display_on?(action) }
+ def sidebar_sections_for(action, render_context = nil)
+ sidebar_sections.select{|section| section.display_on?(action, render_context) }
end
def sidebar_sections?
!!@sidebar_sections && @sidebar_sections.any?
end