I have a ActiveRecord query for example like this:
@result = stuff.limit(10)
where stuff is a active record query with where clauses, order by,
Scope in Rails model with parameter:
scope :scope_name, -> (parameter, ...) { where(is_deleted: parameter, ...) }
Or:
scope :scope_name, lambda{|parameter, ...| where(is_deleted:parameter, ...)}