canvas-lms/app/models/context_external_tool_place...

8 lines
297 B
Ruby

class ContextExternalToolPlacement < ActiveRecord::Base
belongs_to :context_external_tool
attr_accessible :placement_type
validates_inclusion_of :placement_type, :in => ContextExternalTool::EXTENSION_TYPES.map(&:to_s)
scope :for_type, lambda { |type| where(:placement_type => type) }
end