Skip to content

Commit

Permalink
Rails doesn't like collections that don't respond to to_ary
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Feb 26, 2015
1 parent 640e00e commit 6ad393d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/app/views/refinery/admin/_menu.html.erb
@@ -1,4 +1,4 @@
<nav id="menu">
<%= render partial: "menu_item",
<%= render partial: "refinery/admin/menu_item",
collection: current_refinery_user.plugins.in_menu -%>
</nav>
2 changes: 1 addition & 1 deletion core/lib/refinery/plugins.rb
Expand Up @@ -9,7 +9,7 @@ def initialize(*args)
@plugins = Array.new(*args)
end

def_delegators :@plugins, :<<, :each, :delete_if
def_delegators :@plugins, :<<, :each, :delete_if, :length, :size, :to_ary

def find_by_name(name)
detect { |plugin| plugin.name == name }
Expand Down

0 comments on commit 6ad393d

Please sign in to comment.