This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
forked from atnan/serialization_options
-
Notifications
You must be signed in to change notification settings - Fork 1
Rails plugin for setting ActiveRecord::Serialization::Serializer options at the class level.
License
davidlee/serialization_options
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Serialization Options =========== This is a simple plugin which allows you to avoid specifying serialization options every time you call record.to_json, record.to_xml etc. This is done by specifying the options at the class level. Example ======= class Post < ActiveRecord::Base self.serialization_options = { :only => %w(id created_at updated_at), } end Post.first.to_json Copyright (c) 2008 Nathan de Vries (http://www.atnan.com), released under the MIT license
About
Rails plugin for setting ActiveRecord::Serialization::Serializer options at the class level.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 100.0%