linguisticexplorer/Linguistic-Explorer

View on GitHub
app/models/concerns/wheres.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Concerns
  module Wheres
    def self.included(base)
      base.class_exec do
        scope :in_group, lambda { |group| where(:group => group) }
        scope :at_depth, lambda { |depth| where(:depth => depth) }
      end
    end
  end
end