authentasaurus 0.7.3 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/TODO +3 -0
  2. data/app/controllers/areas_controller.rb +1 -1
  3. data/app/controllers/groups_controller.rb +1 -1
  4. data/app/controllers/permissions_controller.rb +1 -1
  5. data/app/controllers/recoveries_controller.rb +1 -1
  6. data/app/controllers/registrations_controller.rb +1 -1
  7. data/app/controllers/sessions_controller.rb +1 -1
  8. data/app/controllers/user_invitations_controller.rb +1 -1
  9. data/app/controllers/users_controller.rb +1 -1
  10. data/app/controllers/validations_controller.rb +1 -1
  11. data/app/models/area.rb +1 -1
  12. data/app/models/group.rb +1 -1
  13. data/app/models/permission.rb +1 -1
  14. data/app/models/recovery.rb +1 -1
  15. data/app/models/session.rb +1 -1
  16. data/app/models/user_invitation.rb +1 -1
  17. data/app/models/validation.rb +1 -1
  18. data/lib/authentasaurus.rb +22 -36
  19. data/lib/authentasaurus/ac/acts_as_overrider.rb +47 -0
  20. data/lib/authentasaurus/ac/controllers/areas_controller.rb +80 -0
  21. data/lib/authentasaurus/ac/controllers/groups_controller.rb +81 -0
  22. data/lib/authentasaurus/ac/controllers/permissions_controller.rb +81 -0
  23. data/lib/authentasaurus/ac/controllers/recoveries_controller.rb +72 -0
  24. data/lib/authentasaurus/ac/controllers/registrations_controller.rb +45 -0
  25. data/lib/authentasaurus/ac/controllers/sessions_controller.rb +58 -0
  26. data/lib/authentasaurus/ac/controllers/user_invitations_controller.rb +50 -0
  27. data/lib/authentasaurus/ac/controllers/users_controller.rb +80 -0
  28. data/lib/authentasaurus/ac/controllers/validations_controller.rb +53 -0
  29. data/lib/authentasaurus/ac/routing.rb +90 -0
  30. data/lib/authentasaurus/ar/acts_as_authenticatable.rb +113 -0
  31. data/lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb +38 -0
  32. data/lib/authentasaurus/ar/acts_as_overrider.rb +51 -0
  33. data/lib/authentasaurus/ar/authenticatable.rb +66 -0
  34. data/lib/authentasaurus/ar/migrations.rb +173 -0
  35. data/lib/authentasaurus/{models → ar/models}/recovery.rb +3 -3
  36. data/lib/authentasaurus/{models → ar/models}/session.rb +1 -1
  37. data/lib/authentasaurus/{models → ar/models}/user_invitation.rb +1 -1
  38. data/lib/authentasaurus/{models → ar/models}/validation.rb +1 -1
  39. data/lib/authentasaurus/arel/acts_as_authenticatable.rb +72 -0
  40. data/lib/authentasaurus/arel/authenticatable.rb +25 -0
  41. data/lib/authentasaurus/authorization.rb +341 -0
  42. data/lib/authentasaurus/railtie.rb +4 -4
  43. data/lib/generators/authentasaurus/install/templates/initializer.rb +1 -1
  44. data/rdoc/apple-touch-icon.png +0 -0
  45. data/rdoc/classes/Authentasaurus.html +65 -0
  46. data/rdoc/classes/Authentasaurus/Ac.html +72 -0
  47. data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider.html +104 -0
  48. data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider/ClassMethods.html +397 -0
  49. data/rdoc/classes/Authentasaurus/Ac/Routing.html +61 -0
  50. data/rdoc/classes/Authentasaurus/Ac/Routing/InstanceMethods.html +390 -0
  51. data/rdoc/classes/Authentasaurus/Ar.html +77 -0
  52. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable.html +107 -0
  53. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/ClassMethods.html +168 -0
  54. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/InstanceMethods.html +357 -0
  55. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable.html +109 -0
  56. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/ClassMethods.html +113 -0
  57. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/InstanceMethods.html +54 -0
  58. data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider.html +104 -0
  59. data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider/ClassMethods.html +320 -0
  60. data/rdoc/classes/Authentasaurus/Ar/Authenticatable.html +104 -0
  61. data/rdoc/classes/Authentasaurus/Ar/Authenticatable/ClassMethods.html +182 -0
  62. data/rdoc/classes/Authentasaurus/Ar/Migrations.html +63 -0
  63. data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns.html +68 -0
  64. data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns/InstanceMethods.html +106 -0
  65. data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables.html +68 -0
  66. data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables/InstanceMethods.html +703 -0
  67. data/rdoc/classes/Authentasaurus/Arel.html +65 -0
  68. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable.html +107 -0
  69. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/ClassMethods.html +139 -0
  70. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/InstanceMethods.html +113 -0
  71. data/rdoc/classes/Authentasaurus/Arel/Authenticatable.html +105 -0
  72. data/rdoc/classes/Authentasaurus/Arel/Authenticatable/ClassMethods.html +119 -0
  73. data/rdoc/classes/Authentasaurus/Authorization.html +230 -0
  74. data/rdoc/classes/Authentasaurus/Authorization/ActionController.html +63 -0
  75. data/rdoc/classes/Authentasaurus/Authorization/ActionController/ClassMethods.html +263 -0
  76. data/rdoc/classes/Authentasaurus/Authorization/ActionController/InstanceMethods.html +54 -0
  77. data/rdoc/classes/Authentasaurus/Authorization/ActionView.html +54 -0
  78. data/rdoc/classes/Authentasaurus/Authorization/CommonInstanceMethods.html +240 -0
  79. data/rdoc/created.rid +1 -0
  80. data/rdoc/css/main.css +278 -0
  81. data/rdoc/css/panel.css +383 -0
  82. data/rdoc/css/reset.css +53 -0
  83. data/rdoc/favicon.ico +0 -0
  84. data/rdoc/files/README_rdoc.html +366 -0
  85. data/rdoc/files/TODO.html +64 -0
  86. data/rdoc/files/lib/authentasaurus/ac/acts_as_overrider_rb.html +52 -0
  87. data/rdoc/files/lib/authentasaurus/ac/routing_rb.html +60 -0
  88. data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_rb.html +52 -0
  89. data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html +52 -0
  90. data/rdoc/files/lib/authentasaurus/ar/acts_as_overrider_rb.html +52 -0
  91. data/rdoc/files/lib/authentasaurus/ar/authenticatable_rb.html +52 -0
  92. data/rdoc/files/lib/authentasaurus/ar/migrations_rb.html +52 -0
  93. data/rdoc/files/lib/authentasaurus/arel/acts_as_authenticatable_rb.html +52 -0
  94. data/rdoc/files/lib/authentasaurus/arel/authenticatable_rb.html +72 -0
  95. data/rdoc/files/lib/authentasaurus/authorization_rb.html +208 -0
  96. data/rdoc/i/arrows.png +0 -0
  97. data/rdoc/i/results_bg.png +0 -0
  98. data/rdoc/i/tree_bg.png +0 -0
  99. data/rdoc/index.html +15 -0
  100. data/rdoc/js/jquery-1.3.2.min.js +19 -0
  101. data/rdoc/js/jquery-effect.js +593 -0
  102. data/rdoc/js/main.js +22 -0
  103. data/rdoc/js/searchdoc.js +628 -0
  104. data/rdoc/panel/index.html +71 -0
  105. data/rdoc/panel/search_index.js +1 -0
  106. data/rdoc/panel/tree.js +1 -0
  107. metadata +92 -44
  108. data/lib/action_controller/authorization.rb +0 -215
  109. data/lib/action_view/authorization.rb +0 -52
  110. data/lib/active_record/acts_as_authenticatable.rb +0 -111
  111. data/lib/active_record/acts_as_authenticatable_validatable.rb +0 -36
  112. data/lib/active_record/authenticatable.rb +0 -64
  113. data/lib/active_resource/acts_as_authenticatable.rb +0 -70
  114. data/lib/active_resource/authenticatable.rb +0 -24
  115. data/lib/authentasaurus/areas_controller.rb +0 -78
  116. data/lib/authentasaurus/groups_controller.rb +0 -79
  117. data/lib/authentasaurus/models/area.rb +0 -21
  118. data/lib/authentasaurus/models/group.rb +0 -19
  119. data/lib/authentasaurus/models/permission.rb +0 -24
  120. data/lib/authentasaurus/permissions_controller.rb +0 -79
  121. data/lib/authentasaurus/recoveries_controller.rb +0 -70
  122. data/lib/authentasaurus/registrations_controller.rb +0 -43
  123. data/lib/authentasaurus/sessions_controller.rb +0 -56
  124. data/lib/authentasaurus/user_invitations_controller.rb +0 -48
  125. data/lib/authentasaurus/users_controller.rb +0 -78
  126. data/lib/authentasaurus/validations_controller.rb +0 -51
  127. data/lib/helpers/migrations.rb +0 -171
  128. data/lib/helpers/routing.rb +0 -87
@@ -0,0 +1,68 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Authentasaurus::Ar::Migrations::Tables</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Module</span>
19
+ Authentasaurus::Ar::Migrations::Tables
20
+
21
+ </h1>
22
+ <ul class="files">
23
+
24
+ <li><a href="../../../../files/lib/authentasaurus/ar/migrations_rb.html">lib/authentasaurus/ar/migrations.rb</a></li>
25
+
26
+ </ul>
27
+ </div>
28
+ <div id="bodyContent">
29
+ <div id="content">
30
+
31
+ <div class="description">
32
+ <p>
33
+ Extends ActiveRecord::ConnectionAdapters::SchemaStatements
34
+ </p>
35
+
36
+ </div>
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+ <div class="sectiontitle">Classes and Modules</div>
53
+ <ul>
54
+
55
+ <li><span class="type">MODULE</span> <a href="Tables/InstanceMethods.html">Authentasaurus::Ar::Migrations::Tables::InstanceMethods</a></li>
56
+
57
+ </ul>
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ </div>
66
+ </div>
67
+ </body>
68
+ </html>
@@ -0,0 +1,703 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Authentasaurus::Ar::Migrations::Tables::InstanceMethods</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Module</span>
19
+ Authentasaurus::Ar::Migrations::Tables::InstanceMethods
20
+
21
+ </h1>
22
+ <ul class="files">
23
+
24
+ <li><a href="../../../../../files/lib/authentasaurus/ar/migrations_rb.html">lib/authentasaurus/ar/migrations.rb</a></li>
25
+
26
+ </ul>
27
+ </div>
28
+ <div id="bodyContent">
29
+ <div id="content">
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ <div class="sectiontitle">Methods</div>
40
+ <dl class="methods">
41
+
42
+ <dt>A</dt>
43
+ <dd>
44
+ <ul>
45
+
46
+ <li><a href="#M000018">authentasaurus_area</a>,</li>
47
+
48
+ <li><a href="#M000027">authentasaurus_drop_area</a>,</li>
49
+
50
+ <li><a href="#M000026">authentasaurus_drop_group</a>,</li>
51
+
52
+ <li><a href="#M000029">authentasaurus_drop_permission</a>,</li>
53
+
54
+ <li><a href="#M000032">authentasaurus_drop_recovery</a>,</li>
55
+
56
+ <li><a href="#M000024">authentasaurus_drop_tables</a>,</li>
57
+
58
+ <li><a href="#M000025">authentasaurus_drop_user</a>,</li>
59
+
60
+ <li><a href="#M000031">authentasaurus_drop_user_invitation</a>,</li>
61
+
62
+ <li><a href="#M000030">authentasaurus_drop_validation</a>,</li>
63
+
64
+ <li><a href="#M000017">authentasaurus_group</a>,</li>
65
+
66
+ <li><a href="#M000019">authentasaurus_permission</a>,</li>
67
+
68
+ <li><a href="#M000022">authentasaurus_recovery</a>,</li>
69
+
70
+ <li><a href="#M000015">authentasaurus_tables</a>,</li>
71
+
72
+ <li><a href="#M000016">authentasaurus_user</a>,</li>
73
+
74
+ <li><a href="#M000021">authentasaurus_user_invitation</a>,</li>
75
+
76
+ <li><a href="#M000020">authentasaurus_validation</a></li>
77
+
78
+ </ul>
79
+ </dd>
80
+
81
+ </dl>
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <div class="sectiontitle">Instance Public methods</div>
96
+
97
+ <div class="method">
98
+ <div class="title" id="M000018">
99
+
100
+ <a name="M000018"></a><b>authentasaurus_area</b>()
101
+
102
+ </div>
103
+
104
+ <div class="description">
105
+ <p>
106
+ creates areas table
107
+ </p>
108
+
109
+ </div>
110
+
111
+
112
+
113
+
114
+ <div class="sourcecode">
115
+ <p class="source-link">
116
+ Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
117
+
118
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L50" target="_blank" class="github_url">on GitHub</a>
119
+
120
+ </p>
121
+ <div id="M000018_source" class="dyn-source">
122
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 50</span>
123
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_area</span>
124
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:areas</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
125
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:name</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
126
+
127
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
128
+ <span class="ruby-keyword kw">end</span>
129
+ <span class="ruby-keyword kw">end</span></pre>
130
+ </div>
131
+ </div>
132
+
133
+ </div>
134
+
135
+ <div class="method">
136
+ <div class="title" id="M000027">
137
+
138
+ <a name="M000027"></a><b>authentasaurus_drop_area</b>()
139
+
140
+ </div>
141
+
142
+ <div class="description">
143
+ <p>
144
+ drops areas table
145
+ </p>
146
+
147
+ </div>
148
+
149
+
150
+
151
+
152
+ <div class="sourcecode">
153
+ <p class="source-link">
154
+ Source: <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show</a>
155
+
156
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L125" target="_blank" class="github_url">on GitHub</a>
157
+
158
+ </p>
159
+ <div id="M000027_source" class="dyn-source">
160
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 125</span>
161
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_area</span>
162
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:areas</span>
163
+ <span class="ruby-keyword kw">end</span></pre>
164
+ </div>
165
+ </div>
166
+
167
+ </div>
168
+
169
+ <div class="method">
170
+ <div class="title" id="M000026">
171
+
172
+ <a name="M000026"></a><b>authentasaurus_drop_group</b>()
173
+
174
+ </div>
175
+
176
+ <div class="description">
177
+ <p>
178
+ drops groups table
179
+ </p>
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ <div class="sourcecode">
187
+ <p class="source-link">
188
+ Source: <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show</a>
189
+
190
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L120" target="_blank" class="github_url">on GitHub</a>
191
+
192
+ </p>
193
+ <div id="M000026_source" class="dyn-source">
194
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 120</span>
195
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_group</span>
196
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:groups</span>
197
+ <span class="ruby-keyword kw">end</span></pre>
198
+ </div>
199
+ </div>
200
+
201
+ </div>
202
+
203
+ <div class="method">
204
+ <div class="title" id="M000029">
205
+
206
+ <a name="M000029"></a><b>authentasaurus_drop_permission</b>()
207
+
208
+ </div>
209
+
210
+ <div class="description">
211
+ <p>
212
+ drops permissions table
213
+ </p>
214
+
215
+ </div>
216
+
217
+
218
+
219
+
220
+ <div class="sourcecode">
221
+ <p class="source-link">
222
+ Source: <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show</a>
223
+
224
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L130" target="_blank" class="github_url">on GitHub</a>
225
+
226
+ </p>
227
+ <div id="M000029_source" class="dyn-source">
228
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 130</span>
229
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_permission</span>
230
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:permissions</span>
231
+ <span class="ruby-keyword kw">end</span></pre>
232
+ </div>
233
+ </div>
234
+
235
+ </div>
236
+
237
+ <div class="method">
238
+ <div class="title" id="M000032">
239
+
240
+ <a name="M000032"></a><b>authentasaurus_drop_recovery</b>()
241
+
242
+ </div>
243
+
244
+ <div class="description">
245
+ <p>
246
+ drops recoveries table
247
+ </p>
248
+
249
+ </div>
250
+
251
+
252
+
253
+
254
+ <div class="sourcecode">
255
+ <p class="source-link">
256
+ Source: <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show</a>
257
+
258
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L145" target="_blank" class="github_url">on GitHub</a>
259
+
260
+ </p>
261
+ <div id="M000032_source" class="dyn-source">
262
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 145</span>
263
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_recovery</span>
264
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:recoveries</span>
265
+ <span class="ruby-keyword kw">end</span></pre>
266
+ </div>
267
+ </div>
268
+
269
+ </div>
270
+
271
+ <div class="method">
272
+ <div class="title" id="M000024">
273
+
274
+ <a name="M000024"></a><b>authentasaurus_drop_tables</b>()
275
+
276
+ </div>
277
+
278
+ <div class="description">
279
+ <p>
280
+ drops all tables
281
+ </p>
282
+
283
+ </div>
284
+
285
+
286
+
287
+
288
+ <div class="sourcecode">
289
+ <p class="source-link">
290
+ Source: <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show</a>
291
+
292
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L104" target="_blank" class="github_url">on GitHub</a>
293
+
294
+ </p>
295
+ <div id="M000024_source" class="dyn-source">
296
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 104</span>
297
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_tables</span>
298
+ <span class="ruby-identifier">authentasaurus_drop_user</span>
299
+ <span class="ruby-identifier">authentasaurus_drop_group</span>
300
+ <span class="ruby-identifier">authentasaurus_drop_area</span>
301
+ <span class="ruby-identifier">authentasaurus_drop_permission</span>
302
+ <span class="ruby-identifier">authentasaurus_drop_validation</span>
303
+ <span class="ruby-identifier">authentasaurus_drop_user_invitation</span>
304
+ <span class="ruby-identifier">authentasaurus_drop_recovery</span>
305
+ <span class="ruby-keyword kw">end</span></pre>
306
+ </div>
307
+ </div>
308
+
309
+ </div>
310
+
311
+ <div class="method">
312
+ <div class="title" id="M000025">
313
+
314
+ <a name="M000025"></a><b>authentasaurus_drop_user</b>()
315
+
316
+ </div>
317
+
318
+ <div class="description">
319
+ <p>
320
+ drops users table
321
+ </p>
322
+
323
+ </div>
324
+
325
+
326
+
327
+
328
+ <div class="sourcecode">
329
+ <p class="source-link">
330
+ Source: <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show</a>
331
+
332
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L115" target="_blank" class="github_url">on GitHub</a>
333
+
334
+ </p>
335
+ <div id="M000025_source" class="dyn-source">
336
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 115</span>
337
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_user</span>
338
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:users</span>
339
+ <span class="ruby-keyword kw">end</span></pre>
340
+ </div>
341
+ </div>
342
+
343
+ </div>
344
+
345
+ <div class="method">
346
+ <div class="title" id="M000031">
347
+
348
+ <a name="M000031"></a><b>authentasaurus_drop_user_invitation</b>()
349
+
350
+ </div>
351
+
352
+ <div class="description">
353
+ <p>
354
+ drops user_invitations table
355
+ </p>
356
+
357
+ </div>
358
+
359
+
360
+
361
+
362
+ <div class="sourcecode">
363
+ <p class="source-link">
364
+ Source: <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show</a>
365
+
366
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L140" target="_blank" class="github_url">on GitHub</a>
367
+
368
+ </p>
369
+ <div id="M000031_source" class="dyn-source">
370
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 140</span>
371
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_user_invitation</span>
372
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:user_invitations</span>
373
+ <span class="ruby-keyword kw">end</span></pre>
374
+ </div>
375
+ </div>
376
+
377
+ </div>
378
+
379
+ <div class="method">
380
+ <div class="title" id="M000030">
381
+
382
+ <a name="M000030"></a><b>authentasaurus_drop_validation</b>()
383
+
384
+ </div>
385
+
386
+ <div class="description">
387
+ <p>
388
+ drops validations table
389
+ </p>
390
+
391
+ </div>
392
+
393
+
394
+
395
+
396
+ <div class="sourcecode">
397
+ <p class="source-link">
398
+ Source: <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show</a>
399
+
400
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L135" target="_blank" class="github_url">on GitHub</a>
401
+
402
+ </p>
403
+ <div id="M000030_source" class="dyn-source">
404
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 135</span>
405
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_drop_validation</span>
406
+ <span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:validations</span>
407
+ <span class="ruby-keyword kw">end</span></pre>
408
+ </div>
409
+ </div>
410
+
411
+ </div>
412
+
413
+ <div class="method">
414
+ <div class="title" id="M000017">
415
+
416
+ <a name="M000017"></a><b>authentasaurus_group</b>()
417
+
418
+ </div>
419
+
420
+ <div class="description">
421
+ <p>
422
+ creates groups table
423
+ </p>
424
+
425
+ </div>
426
+
427
+
428
+
429
+
430
+ <div class="sourcecode">
431
+ <p class="source-link">
432
+ Source: <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show</a>
433
+
434
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L41" target="_blank" class="github_url">on GitHub</a>
435
+
436
+ </p>
437
+ <div id="M000017_source" class="dyn-source">
438
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 41</span>
439
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_group</span>
440
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:groups</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
441
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:name</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
442
+
443
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
444
+ <span class="ruby-keyword kw">end</span>
445
+ <span class="ruby-keyword kw">end</span></pre>
446
+ </div>
447
+ </div>
448
+
449
+ </div>
450
+
451
+ <div class="method">
452
+ <div class="title" id="M000019">
453
+
454
+ <a name="M000019"></a><b>authentasaurus_permission</b>()
455
+
456
+ </div>
457
+
458
+ <div class="description">
459
+ <p>
460
+ creates permissions table
461
+ </p>
462
+
463
+ </div>
464
+
465
+
466
+
467
+
468
+ <div class="sourcecode">
469
+ <p class="source-link">
470
+ Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
471
+
472
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L59" target="_blank" class="github_url">on GitHub</a>
473
+
474
+ </p>
475
+ <div id="M000019_source" class="dyn-source">
476
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 59</span>
477
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_permission</span>
478
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:permissions</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
479
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:group_id</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
480
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:area_id</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
481
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">boolean</span> <span class="ruby-identifier">:read</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:default</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
482
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">boolean</span> <span class="ruby-identifier">:write</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:default</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
483
+
484
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
485
+ <span class="ruby-keyword kw">end</span>
486
+ <span class="ruby-keyword kw">end</span></pre>
487
+ </div>
488
+ </div>
489
+
490
+ </div>
491
+
492
+ <div class="method">
493
+ <div class="title" id="M000022">
494
+
495
+ <a name="M000022"></a><b>authentasaurus_recovery</b>()
496
+
497
+ </div>
498
+
499
+ <div class="description">
500
+ <p>
501
+ creates recoveries table
502
+ </p>
503
+
504
+ </div>
505
+
506
+
507
+
508
+
509
+ <div class="sourcecode">
510
+ <p class="source-link">
511
+ Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
512
+
513
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L93" target="_blank" class="github_url">on GitHub</a>
514
+
515
+ </p>
516
+ <div id="M000022_source" class="dyn-source">
517
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 93</span>
518
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_recovery</span>
519
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:recoveries</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
520
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:user_id</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
521
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:email</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
522
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:token</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:unique</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>
523
+
524
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
525
+ <span class="ruby-keyword kw">end</span>
526
+ <span class="ruby-keyword kw">end</span></pre>
527
+ </div>
528
+ </div>
529
+
530
+ </div>
531
+
532
+ <div class="method">
533
+ <div class="title" id="M000015">
534
+
535
+ <a name="M000015"></a><b>authentasaurus_tables</b>()
536
+
537
+ </div>
538
+
539
+ <div class="description">
540
+ <p>
541
+ creates all tables
542
+ </p>
543
+
544
+ </div>
545
+
546
+
547
+
548
+
549
+ <div class="sourcecode">
550
+ <p class="source-link">
551
+ Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
552
+
553
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L11" target="_blank" class="github_url">on GitHub</a>
554
+
555
+ </p>
556
+ <div id="M000015_source" class="dyn-source">
557
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 11</span>
558
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_tables</span>
559
+ <span class="ruby-identifier">authentasaurus_user</span> <span class="ruby-identifier">:authorizable</span>
560
+ <span class="ruby-identifier">authentasaurus_group</span>
561
+ <span class="ruby-identifier">authentasaurus_area</span>
562
+ <span class="ruby-identifier">authentasaurus_permission</span>
563
+ <span class="ruby-identifier">authentasaurus_validation</span>
564
+ <span class="ruby-identifier">authentasaurus_user_invitation</span>
565
+ <span class="ruby-identifier">authentasaurus_recovery</span>
566
+ <span class="ruby-keyword kw">end</span></pre>
567
+ </div>
568
+ </div>
569
+
570
+ </div>
571
+
572
+ <div class="method">
573
+ <div class="title" id="M000016">
574
+
575
+ <a name="M000016"></a><b>authentasaurus_user</b>(*opts)
576
+
577
+ </div>
578
+
579
+ <div class="description">
580
+ <p>
581
+ creates users table
582
+ </p>
583
+
584
+ </div>
585
+
586
+
587
+
588
+
589
+ <div class="sourcecode">
590
+ <p class="source-link">
591
+ Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
592
+
593
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L22" target="_blank" class="github_url">on GitHub</a>
594
+
595
+ </p>
596
+ <div id="M000016_source" class="dyn-source">
597
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 22</span>
598
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_user</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">opts</span>)
599
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:users</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
600
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:username</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
601
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:hashed_password</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
602
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:password_seed</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
603
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:name</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
604
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:email</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
605
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">boolean</span> <span class="ruby-identifier">:active</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:default</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
606
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:remember_me_token</span>
607
+
608
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">:authorizable</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;authorizable&quot;</span>)
609
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:group_id</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
610
+ <span class="ruby-keyword kw">end</span>
611
+
612
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
613
+ <span class="ruby-keyword kw">end</span>
614
+ <span class="ruby-keyword kw">end</span></pre>
615
+ </div>
616
+ </div>
617
+
618
+ </div>
619
+
620
+ <div class="method">
621
+ <div class="title" id="M000021">
622
+
623
+ <a name="M000021"></a><b>authentasaurus_user_invitation</b>()
624
+
625
+ </div>
626
+
627
+ <div class="description">
628
+ <p>
629
+ creates user_invitations table
630
+ </p>
631
+
632
+ </div>
633
+
634
+
635
+
636
+
637
+ <div class="sourcecode">
638
+ <p class="source-link">
639
+ Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
640
+
641
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L83" target="_blank" class="github_url">on GitHub</a>
642
+
643
+ </p>
644
+ <div id="M000021_source" class="dyn-source">
645
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 83</span>
646
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_user_invitation</span>
647
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:user_invitations</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
648
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:token</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:unique</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>
649
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:email</span>
650
+
651
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
652
+ <span class="ruby-keyword kw">end</span>
653
+ <span class="ruby-keyword kw">end</span></pre>
654
+ </div>
655
+ </div>
656
+
657
+ </div>
658
+
659
+ <div class="method">
660
+ <div class="title" id="M000020">
661
+
662
+ <a name="M000020"></a><b>authentasaurus_validation</b>()
663
+
664
+ </div>
665
+
666
+ <div class="description">
667
+ <p>
668
+ creates validations table
669
+ </p>
670
+
671
+ </div>
672
+
673
+
674
+
675
+
676
+ <div class="sourcecode">
677
+ <p class="source-link">
678
+ Source: <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show</a>
679
+
680
+ | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/migrations.rb#L71" target="_blank" class="github_url">on GitHub</a>
681
+
682
+ </p>
683
+ <div id="M000020_source" class="dyn-source">
684
+ <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/migrations.rb, line 71</span>
685
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authentasaurus_validation</span>
686
+ <span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:validations</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
687
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:user_id</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
688
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:user_type</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
689
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:email</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
690
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:validation_code</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>
691
+
692
+ <span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
693
+ <span class="ruby-keyword kw">end</span>
694
+ <span class="ruby-keyword kw">end</span></pre>
695
+ </div>
696
+ </div>
697
+
698
+ </div>
699
+
700
+ </div>
701
+ </div>
702
+ </body>
703
+ </html>