lib/riveter/attributes.rb in riveter-0.0.14 vs lib/riveter/attributes.rb in riveter-0.0.15
- old
+ new
@@ -193,9 +193,12 @@
attr_writer name
add_attr(name, :hash, converter, options)
end
+ ##
+ # FIXME: this doesn't work as expected
+ #
def attr_model(name, model_or_scope, options={}, &block)
options = {
:model => model_or_scope,
:validate => true,
:find_by => :id