Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add instance_accessor option to class_attribute | Alexey Vakhov | 2012-05-22 | 1 | -2/+4 |
| | |||||
* | Indentation for private methods | Alexey Gaziev | 2012-04-29 | 1 | -3/+3 |
| | | | | https://github.com/rails/rails/commit/e7d55f734aae204115d0a04a2db774ac364c1312 | ||||
* | use correct variant of checking whether class is a singleton | Sergey Nartimov | 2012-01-03 | 1 | -1/+1 |
| | |||||
* | Revert "Merge pull request #4220 from bensie/singleton-class-master" | Jon Leighton | 2011-12-28 | 1 | -1/+14 |
| | | | | | | | This reverts commit 90df0d4f687596943bda108ab0b98dd99cacd46b, reversing changes made to 5e6fc81d63837559a393c173eade281ddeb687dd. Reason: build breakage | ||||
* | Further simplify singleton_class checking in class_attribute | James Miller | 2011-12-28 | 1 | -14/+1 |
| | |||||
* | simplify singleton_class? method | Aaron Patterson | 2011-07-23 | 1 | -7/+1 |
| | |||||
* | Ugh, the class_attribute pull request broke the build. fix it. | José Valim | 2011-06-19 | 1 | -7/+4 |
| | |||||
* | Add option to omit creating an instance reader method on class_attribute | James Miller | 2011-06-18 | 1 | -7/+20 |
| | |||||
* | Use #remove_possible_method instead | Sebastian Martinez | 2011-05-04 | 1 | -1/+1 |
| | |||||
* | Merge remote branch 'miloops/warnings' | José Valim | 2010-09-27 | 1 | -0/+1 |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/url_for.rb | ||||
| * | Remove method if already exists to avoid warnings. | Emilio Tagua | 2010-09-27 | 1 | -0/+1 |
| | | |||||
* | | Creating singleton class for every object whenever the instance-level ↵ | thedarkone | 2010-09-27 | 1 | -1/+21 |
|/ | | | | accessor is used quite is expensive. | ||||
* | Class Attribute setter returns set value | Peter Wagenet | 2010-08-16 | 1 | -0/+1 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | applied guidelines to "# =>" | Paco Guzman | 2010-08-12 | 1 | -6/+6 |
| | |||||
* | More documentation to class_attribute. | José Valim | 2010-07-28 | 1 | -11/+24 |
| | |||||
* | clarifying the instance_write option with an example | Neeraj Singh | 2010-07-28 | 1 | -1/+5 |
| | |||||
* | updating description of how class_attribute works | Neeraj Singh | 2010-07-28 | 1 | -0/+5 |
| | |||||
* | clarifying description for class_attribute method | Neeraj Singh | 2010-07-27 | 1 | -2/+2 |
| | |||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 1 | -4/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Not using class_eval wasn't adding clarity here | wycats | 2010-04-10 | 1 | -15/+24 |
| | |||||
* | moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵ | Xavier Noria | 2010-04-05 | 1 | -1/+1 |
| | | | | there, same for #class_eval to simplify, and adds coverage for class_eval | ||||
* | Fix class_attribute so that it works with singleton classes. | Carl Lerche | 2010-04-01 | 1 | -1/+1 |
| | |||||
* | Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM ↵ | wycats | 2010-03-17 | 1 | -0/+3 |
| | | | | warnings are in dependencies. | ||||
* | class_attribute gets instance methods which delegate to but may override ↵ | Jeremy Kemper | 2010-03-08 | 1 | -2/+23 |
| | | | | their class values as you'd expect. Disable instance writer methods with :instance_writer => false. | ||||
* | Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice. | Jeremy Kemper | 2010-02-25 | 1 | -5/+6 |
| | |||||
* | Introduce class_attribute to declare inheritable class attributes. Writing ↵ | Jeremy Kemper | 2010-02-01 | 1 | -0/+36 |
an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute. |