jshoe/coursequestionbank

View on GitHub
app/models/tag.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Tag < ActiveRecord::Base
  attr_accessible :name
  has_and_belongs_to_many :problems

  scope :tag_name, ->(t) { where(name: t) }
end