Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | define Active Record Store accessors in a module | Sergey Nartimov | 2013-02-11 | 1 | -0/+12 |
| | | | | | | | | | | | | | 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 | ||||
* | Revert "Merge pull request #8989 from robertomiranda/use-rails-4-find-by" | Guillermo Iguaran | 2013-01-18 | 1 | -1/+1 |
| | | | | | This reverts commit 637a7d9d357a0f3f725b0548282ca8c5e7d4af4a, reversing changes made to 5937bd02dee112646469848d7fe8a8bfcef5b4c1. | ||||
* | User Rails 4 find_by | robertomiranda | 2013-01-18 | 1 | -1/+1 |
| | |||||
* | Namespace HashWithIndifferentAccess | Akira Matsuda | 2013-01-07 | 1 | -4/+3 |
| | |||||
* | fix warning: method redefined | kennyj | 2012-10-02 | 1 | -1/+1 |
| | |||||
* | refactor store_accessor | Matt Jones | 2012-09-13 | 1 | -1/+13 |
| | |||||
* | correctly flag changed attributes in AR::Store, combine multiple calls to ↵ | Matt Jones | 2012-09-05 | 1 | -2/+8 |
| | | | | store_accessor | ||||
* | Use instance_accessor: false instead of instance_writer. | kennyj | 2012-08-21 | 1 | -3/+2 |
| | |||||
* | Added *instance_writer: false* for stored/serialized attributes. | kennyj | 2012-07-07 | 1 | -0/+7 |
| | |||||
* | Don't mark the store as changed if an attribute isn't changed. | kennyj | 2012-07-03 | 1 | -0/+5 |
| | |||||
* | Remember the stored attributes in a config attribute. | Joost Baaij | 2012-06-18 | 1 | -1/+5 |
| | | | | | | 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. | ||||
* | Fix backward compatibility with stored Hash values. Wrap coders to convert ↵ | Jeremy Kemper | 2012-05-30 | 1 | -13/+16 |
| | | | | serialized values to indifferent access. | ||||
* | Convert Hash to HashWithIndifferentAccess in ActiveRecord::Store. | Andrey Voronkov | 2012-05-22 | 1 | -0/+34 |
| | | | | | | | 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. | ||||
* | Custom coders support for ActiveRecord::Store. JSON, YAML, Marshal can be ↵ | Andrey Voronkov | 2012-05-09 | 1 | -1/+35 |
| | | | | used out of the box. | ||||
* | Allow store to be a not null column. | Jeremy Walker | 2012-02-02 | 1 | -2/+11 |
| | |||||
* | Fix typo | Jon Leighton | 2011-11-30 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of github.com:rails/rails | David Heinemeier Hansson | 2011-10-25 | 1 | -3/+3 |
|\ | |||||
| * | Rails 4 is just around the corner. Stuck with 1.8 until then. | Jeremy Kemper | 2011-10-13 | 1 | -3/+3 |
| | | |||||
* | | Fix that changing a store should mark the store attribute as changed | David Heinemeier Hansson | 2011-10-25 | 1 | -0/+5 |
|/ | |||||
* | Added ActiveRecord::Base.store for declaring simple single-column key/value ↵ | David Heinemeier Hansson | 2011-10-13 | 1 | -0/+29 |
stores [DHH] |