# class Shot

### Public Instance Methods

show() click to toggle source

    # File app/models/shot.rb, line 27
    def show
      if sequence_id
        sequence.show_id
      else
        nil
      end
    end

validate() click to toggle source

    # File app/models/shot.rb, line 19
    def validate
      $stderr.puts "HELLO"
      if name !~ %r^#{sequence.name}/
        errors.add(:name,
                   "must be the same prefix as the sequence")
      end
    end