Use mattr_accessor instead of cattr_accessor to support rails3
Merge pull request #80 from wear/hotfix/cattr_accessor-broken-in-rails3

Use mattr_accessor instead of cattr_accessor to support rails3