Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 530 Bytes
1 | module ActiveSupport |
2 | # Wrapping a string in this class gives you a prettier way to test |
3 | # for equality. The value returned by <tt>Rails.env</tt> is wrapped |
4 | # in a StringInquirer object so instead of calling this: |
5 | # |
6 | # Rails.env == "production" |
7 | # |
8 | # you can call this: |
9 | # |
10 | # Rails.env.production? |
11 | # |
12 | class StringInquirer < String |
13 | def method_missing(method_name, *arguments) |
14 | if method_name.to_s[-1,1] == "?" |
15 | self == method_name.to_s[0..-2] |
16 | else |
17 | super |
18 | end |
19 | end |
20 | end |
21 | end |