From 1ea0dd0ffc37232d27f4fa1350af6ebb3b5439f2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 25 Oct 2012 11:59:41 +0300 Subject: App docs --- doc/app/StaticModel/ClassMethods.html | 511 ++++++++++++++++++++++++++++++++++ 1 file changed, 511 insertions(+) create mode 100644 doc/app/StaticModel/ClassMethods.html (limited to 'doc/app/StaticModel') diff --git a/doc/app/StaticModel/ClassMethods.html b/doc/app/StaticModel/ClassMethods.html new file mode 100644 index 00000000000..27ee1373838 --- /dev/null +++ b/doc/app/StaticModel/ClassMethods.html @@ -0,0 +1,511 @@ + + + + + + +module StaticModel::ClassMethods - Rails Application Documentation + + + + + + + + + + + + + + + + +
+

module StaticModel::ClassMethods

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ base_class() + click to toggle source +
+ + +
+ +

Used by ActiveRecord’s polymorphic association to set object_type

+ + + +
+
# File app/roles/static_model.rb, line 12
+def base_class
+  self
+end
+
+ +
+ + + + +
+ + +
+ +
+ primary_key() + click to toggle source +
+ + +
+ +

Used by ActiveRecord’s polymorphic association to set object_id

+ + + +
+
# File app/roles/static_model.rb, line 7
+def primary_key
+  'id'
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + -- cgit v1.2.1