Permalink
Browse files

Call predefine_resource.

  • Loading branch information...
postmodern committed Jul 26, 2011
1 parent e5e4984 commit bba499248a106248099787b39cb1659e19ebf166
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/dm-is-predefined/is/predefined.rb
@@ -234,7 +234,9 @@ def predefine(name,attributes={})
class_eval %{
class << self
- define_method(#{name.inspect}) { get(#{name.inspect}) }
+ define_method(#{name.inspect}) do
+ predefined_resource(#{name.inspect})
+ end
end
}

0 comments on commit bba4992

Please sign in to comment.