Comments (4)
Thanks for the report! That’s a good catch and there should be a named scope called "with_preferences" that would make this much easier, e.g.
User.with_preferences(:article_notification => true)
I’ll working on putting this together over the next week.
from preferences.
Sachin Sagar commented
Yup, do it plz. I’m waiting.
And just let me know so I can check-it-out.
from preferences.
Please do not tell me to "do it" and that you’re "waiting". This is an open-source project and I work on this in my free time... so if you’re waiting, you’re more than welcome to put together a patch for this yourself. Otherwise, please understand that I’ll get to it when I’ll get to it, be that in 1 week or in 4 weeks.
from preferences.
(from [9383aff]) Add named scopes: #with_preferences and #without_preferences [#1 state:resolved]
http://github.com/pluginaweek/preferences/commit/9383afff5a6e53138e066a71d7aebdeb3a8907d8
from preferences.
Related Issues (7)
- preferences hash has wrong types HOT 3
- `type_cast' for nil:NilClass (NoMethodError) HOT 1
- rails 3 working? HOT 3
- undefined method `named_scope' for #<Class:0x00000103606a90> HOT 1
- Rails 4 issue (undefined method `class_inheritable_hash' for #<Class:0x007fa482432578>):
- uninitialized constant Preferences::InstanceMethods::Preference
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 preferences.