lib/active_admin/scope.rb in yousty-activeadmin-1.0.13.pre vs lib/active_admin/scope.rb in yousty-activeadmin-1.0.14.pre
- old
+ new
@@ -27,13 +27,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 = method.to_s.parameterize("_")
+ @id = method.to_s.parameterize(separator: '_')
else
@scope_method ||= name.to_sym
- @id = name.to_s.parameterize("_")
+ @id = name.to_s.parameterize(separator: '_')
end
@scope_method = nil if @scope_method == :all
@scope_method, @scope_block = nil, block if block_given?