ctran/annotate_models — Issue #55: annotate should ignore magic comment
Author: ayamomiji
Created: 2011-11-08 09:37:50+00:00
State: open

given a model file:

```ruby
# encoding: utf-8

class MyModel < ActiveRecord::Base
# code contains utf-8 characters
end
```

after run annotate, it becomes:

```ruby
# == Schema Information
#
# Table name: my_models
# encoding: utf-8

class MyModel < ActiveRecord::Base
# code contains utf-8 characters
end
```

this will cause magic comment dont work.

expect:

```ruby
# encoding: utf-8
# == Schema Information
#
# Table name: my_models

class MyModel < ActiveRecord::Base
# code contains utf-8 characters
end
```