Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | define Active Record Store accessors in a module | Sergey Nartimov | 2013-02-11 | 1 | -12/+21 |
| | | | | | | | | | | | | | Allow store accessors to be overrided like other attribute methods, e.g.: class User < ActiveRecord::Base store :settings, accessors: [ :color, :homepage ], coder: JSON def color super || 'red' end end | ||||
* | Namespace HashWithIndifferentAccess | Akira Matsuda | 2013-01-07 | 1 | -3/+3 |
| | |||||
* | refactor store_accessor | Matt Jones | 2012-09-13 | 1 | -6/+38 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-09 | 1 | -1/+1 |
|\ | | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | ||||
| * | add :nodoc: to AR::Store::IndifferentCoder [ci skip] | Francesco Rodriguez | 2012-09-08 | 1 | -1/+1 |
| | | |||||
* | | correctly flag changed attributes in AR::Store, combine multiple calls to ↵ | Matt Jones | 2012-09-05 | 1 | -2/+3 |
|/ | | | | store_accessor | ||||
* | Use instance_accessor: false instead of instance_writer. | kennyj | 2012-08-21 | 1 | -1/+1 |
| | |||||
* | load active_support/core_ext/class/attribute in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | load active_support/concern in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Avoid to call send(store_attribute) twice. | kennyj | 2012-07-15 | 1 | -6/+8 |
| | |||||
* | Remove duplicated code in the AR::Store. | kennyj | 2012-07-14 | 1 | -11/+3 |
| | |||||
* | Added *instance_writer: false* for stored/serialized attributes. | kennyj | 2012-07-07 | 1 | -1/+1 |
| | |||||
* | Don't mark the store as changed if an attribute isn't changed. | kennyj | 2012-07-03 | 1 | -2/+5 |
| | |||||
* | Refactor and use class_attribute | Carlos Antonio da Silva | 2012-06-18 | 1 | -3/+5 |
| | |||||
* | Remember the stored attributes in a config attribute. | Joost Baaij | 2012-06-18 | 1 | -0/+12 |
| | | | | | | This allows you to retrieve the list of attributes you've defined. Usable for e.g. selects in the view, or interators based on the attributes you wish to store in the serialized column. | ||||
* | Fixed typo. | chrismcc | 2012-06-11 | 1 | -1/+1 |
| | |||||
* | Fix backward compatibility with stored Hash values. Wrap coders to convert ↵ | Jeremy Kemper | 2012-05-30 | 1 | -2/+32 |
| | | | | serialized values to indifferent access. | ||||
* | Convert Hash to HashWithIndifferentAccess in ActiveRecord::Store. | Andrey Voronkov | 2012-05-22 | 1 | -10/+27 |
| | | | | | | | In order to make migration from 3.x apps easier, we should try to convert Hash instances to HashWithIndifferentAccess, to allow accessing values with both symbol and a string. This is follow up to changes in 3c0bf043. | ||||
* | Copy edit [ci skip] | Rafael Mendonça França | 2012-05-13 | 1 | -3/+4 |
| | |||||
* | Custom coders support for ActiveRecord::Store. JSON, YAML, Marshal can be ↵ | Andrey Voronkov | 2012-05-09 | 1 | -5/+10 |
| | | | | used out of the box. | ||||
* | Merge pull request #4856 from ihid/store_null_bug | Aaron Patterson | 2012-02-02 | 1 | -0/+2 |
|\ | | | | | Allow store to be a not null column. | ||||
| * | Allow store to be a not null column. | Jeremy Walker | 2012-02-02 | 1 | -0/+2 |
| | | |||||
* | | *args is already an array. :'( | Aaron Patterson | 2012-02-02 | 1 | -1/+1 |
| | | |||||
* | | removed whitespace errors ↵ | Aaron Patterson | 2012-02-02 | 1 | -4/+4 |
|/ | | | | :yellow_heart::blue_heart::purple_heart::heart::green_heart: | ||||
* | Fix that changing a store should mark the store attribute as changed | David Heinemeier Hansson | 2011-10-25 | 1 | -0/+1 |
| | |||||
* | Added ActiveRecord::Base.store for declaring simple single-column key/value ↵ | David Heinemeier Hansson | 2011-10-13 | 1 | -0/+49 |
stores [DHH] |