search for: legacy_fields

Displaying 1 result from an estimated 1 matches for "legacy_fields".

2006 Jun 26
4
why can''t I call this without parentheses?
I have a little helper that lets me add legacy fields to models where they have common prefixes, suffixes, or something else weird. Here is the method signature: def legacy_fields(options = {}, *attributes) ..... end options is a hash containing things like :prefix => "post_" - and attributes is a list of attribute names. This gets mixed into the class with extend, so I call it much like the attr* methods. Can someone explain why I get syntax errors if I...