madeintandem / hstore_accessor

Adds typed hstore-backed field support to ActiveRecord models.
MIT License
242 stars 47 forks source link

Define hstore metadata method once #23

Closed crismali closed 10 years ago

crismali commented 10 years ago

Moved the definition of the "hstore_metadata_for_#{hstore_attribute}" method out of the each block so it only happens once.