rmeove active_resource and add protected_attributes for attr_accessible in Rails 4
Use real integer range since weak_parameter calls #exclude? on real integer value with to_i
Disable STI since we're using :type
Merge pull request #1 from miyagawa/rails4

Various fixes for Rails 4