updated gem for rails 4 compatibility, removed use of read_inheritable_attribute/write_inheritable_attribute