Comments (1)
I think a small change can simplify the implementation:
class Foo
always_has :tags => []
end
If the entry is a hash we use it's key as the attribute name and corresponding value as the default value. If it's just a symbol then we use it as only an attribute name.
from wrest.
Related Issues (20)
- Namespaced XML not handled HOT 5
- Allow default headers to be added to the uri that are then used for all requests HOT 1
- Reduce Rubgems version requirements to 1.3.x or greater from > 1.5 HOT 5
- Provide a Uri builder that allows for persistent connections HOT 1
- alias :deserialize :deserialise HOT 1
- Allow async backends to return whatever makes sense (moved here from kaiwren/wrest) HOT 2
- Twitter API v1.1 HOT 1
- encoded plus sign ends up getting double encoded HOT 2
- Caching support for Vary header HOT 1
- dependency on activesupport "~> 3" makes it unusable with activesupport 4 HOT 1
- ruby 2.0 supported ? HOT 1
- Is this project abandoned? HOT 3
- Add a `anything_else` option to callbacks that is run if a response code other than the ones listed is returned
- Remove complex request with parameters Example from Readme
- When in Rails, use Rails logger by default HOT 1
- Redis stores objects as strings - does not perform marshalling / unmarshalling
- Include query params in keys for redis cache HOT 1
- Add Patch support
- Rails 5 support( use inheritance over patching) HOT 3
- Fix the Security Vulnerability on a dependency
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 wrest.