lib/active_admin/resource/sidebars.rb in activeadmin-1.4.3 vs lib/active_admin/resource/sidebars.rb in activeadmin-2.0.0.rc1
- old
+ new
@@ -12,10 +12,10 @@
def clear_sidebar_sections!
@sidebar_sections = []
end
def sidebar_sections_for(action, render_context = nil)
- sidebar_sections.select{|section| section.display_on?(action, render_context) }
+ sidebar_sections.select { |section| section.display_on?(action, render_context) }
.sort_by(&:priority)
end
def sidebar_sections?
!!@sidebar_sections && @sidebar_sections.any?