lib/active_admin/scope.rb in activeadmin-rb-1.5.0 vs lib/active_admin/scope.rb in activeadmin-rb-1.5.1

- old
+ new

@@ -30,13 +30,13 @@ def initialize(name, method = nil, options = {}, &block) @name, @scope_method = name, method.try(:to_sym) if name.is_a? Proc raise "A string/symbol is required as the second argument if your label is a proc." unless method - @id = ActiveAdmin::Dependency.rails.parameterize method.to_s + @id = method.to_s.parameterize(separator: "_") else @scope_method ||= name.to_sym - @id = ActiveAdmin::Dependency.rails.parameterize name.to_s + @id = name.to_s.parameterize(separator: "_") end @scope_method = nil if @scope_method == :all @scope_method, @scope_block = nil, block if block_given?