Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Conveinience reversible method

  • Loading branch information...
commit d87fb5234094468b006c13cfffd4a95cd7e09499 1 parent e577bbf
@Sutto authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/reversible_data.rb
View
4 lib/reversible_data.rb
@@ -13,6 +13,10 @@ def self.add(name, model_name = nil, opts = {}, &blk)
Table.new(name, model_name, opts, &blk)
end
+ def self.[](name)
+ Table.known_models[name]
+ end
+
def self.manager_for(*tables)
TableManager.new(*tables)
end
Please sign in to comment.
Something went wrong with that request. Please try again.