magiclabs/alchemy_spree — pull request #12 by georgemillo (2014-07-17 12:39:43+00:00)
Title: Removing 'readonly' key

I was trying to set up a an app using:

Ruby 2.1.2
Rails 4.1.4
Alchemy 3.0.0
Spree 2.3.1

... but on deploying to Heroku, everything was crashing with this error:

/app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/core_ext/hash/keys.rb:71:in `block in assert_valid_keys': Unknown key: :readonly. Valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :remote, :dependent, :primary_key, :inverse_of, :foreign_type, :polymorphic, :touch, :counter_cache (ArgumentError)

I found an issue in the [spree_alchemy](https://github.com/tesserakt/spree_alchemy/) gem which describes [basically the exact same problem](https://github.com/tesserakt/spree_alchemy/issues/4).... so I copied [their fix](https://github.com/tesserakt/spree_alchemy/commit/7d6cb856c43c0c8295054c9881fc2992f019b4a5).