Comments (9)
Hm, this gem definitely seems incompatible with store_accessor - I'm getting the same issue.
from activerecord-postgres-hstore.
Looking around I'm seeing workarounds but it seems to make sense to bake this in.
https://gist.github.com/2834785
from activerecord-postgres-hstore.
👍 I actually ended up using that. Although, I later realized that in my use case it wasn't necessary to have accessors for the attributes and I just needed to iterate through all the dynamic attributes in the hstore and display them. There still might be that use case where the accessors in the hstore attributes might come in handy.
from activerecord-postgres-hstore.
Any official word on placing this workaround in the gem itself?
from activerecord-postgres-hstore.
I'll take a look ASAP
from activerecord-postgres-hstore.
Watching this 👍
from activerecord-postgres-hstore.
+1
from activerecord-postgres-hstore.
+1
👍
from activerecord-postgres-hstore.
I'm going to close this as I'm no longer using this gem. Feel free to re-open if this is still an issue.
from activerecord-postgres-hstore.
Related Issues (20)
- Does hstore support array? HOT 1
- NoMethodError: undefined method `scan' for {}:Hash HOT 9
- undefined method `scan' for {}:Hash HOT 3
- [Question] Schema for extension. HOT 1
- Error when doing migration on new deploy (Schema dump style not set to sql) HOT 2
- interpolating values
- How to read an hstore as a hash (instead of a string)? HOT 2
- hstore indexes not saved to schema.rb correctly. HOT 5
- Hstore return hstore column as a string when used inside a select + join
- Always UPDATE db even if no changes
- Deserialization issue HOT 1
- Rails 4.2 Error: undefined method `simplified_type' HOT 12
- flat-Ruby usage example request (No-Rails!) HOT 1
- undefined method `scan' for #<Hash:0x007fa6f04d66f8> HOT 1
- Version 0.7.8 HOT 2
- NameError after add a gem
- undefined method simplified_type for class ActiveRecord::ConnectionAdapters::PostgreSQLColumn HOT 5
- hstore:step error with rails 5.0.0.1 HOT 1
- Does it work via Rails 5? HOT 1
- add_hstore_index options not working properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activerecord-postgres-hstore.