authentasaurus 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/CHANGELIST +2 -6
  2. data/TODO +0 -5
  3. data/app/controllers/areas_controller.rb +1 -1
  4. data/app/controllers/groups_controller.rb +1 -1
  5. data/app/controllers/permissions_controller.rb +1 -1
  6. data/app/controllers/recoveries_controller.rb +1 -1
  7. data/app/controllers/registrations_controller.rb +1 -1
  8. data/app/controllers/sessions_controller.rb +2 -2
  9. data/app/controllers/user_invitations_controller.rb +1 -1
  10. data/app/controllers/users_controller.rb +1 -1
  11. data/app/controllers/validations_controller.rb +1 -1
  12. data/app/models/area.rb +1 -1
  13. data/app/models/authentasaurus_emailer.rb +6 -6
  14. data/app/models/group.rb +1 -1
  15. data/app/models/permission.rb +1 -1
  16. data/app/models/recovery.rb +1 -1
  17. data/app/models/user_invitation.rb +1 -1
  18. data/app/models/validation.rb +1 -1
  19. data/app/views/authentasaurus_emailer/invitation_mail.html.erb +2 -2
  20. data/app/views/authentasaurus_emailer/recovery_mail.html.erb +2 -2
  21. data/app/views/authentasaurus_emailer/validation_mail.html.erb +2 -2
  22. data/lib/authentasaurus.rb +18 -52
  23. metadata +2 -136
  24. data/app/models/authentasaurus_session.rb +0 -3
  25. data/lib/authentasaurus/ac/acts_as_overrider.rb +0 -48
  26. data/lib/authentasaurus/ac/controllers/areas_controller.rb +0 -75
  27. data/lib/authentasaurus/ac/controllers/groups_controller.rb +0 -77
  28. data/lib/authentasaurus/ac/controllers/permissions_controller.rb +0 -76
  29. data/lib/authentasaurus/ac/controllers/recoveries_controller.rb +0 -67
  30. data/lib/authentasaurus/ac/controllers/registrations_controller.rb +0 -40
  31. data/lib/authentasaurus/ac/controllers/sessions_controller.rb +0 -57
  32. data/lib/authentasaurus/ac/controllers/user_invitations_controller.rb +0 -45
  33. data/lib/authentasaurus/ac/controllers/users_controller.rb +0 -75
  34. data/lib/authentasaurus/ac/controllers/validations_controller.rb +0 -48
  35. data/lib/authentasaurus/ac/routing.rb +0 -86
  36. data/lib/authentasaurus/ar/acts_as_authenticatable.rb +0 -107
  37. data/lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb +0 -35
  38. data/lib/authentasaurus/ar/acts_as_overrider.rb +0 -49
  39. data/lib/authentasaurus/ar/authenticatable.rb +0 -64
  40. data/lib/authentasaurus/ar/migrations.rb +0 -165
  41. data/lib/authentasaurus/ar/models/recovery.rb +0 -34
  42. data/lib/authentasaurus/ar/models/session.rb +0 -78
  43. data/lib/authentasaurus/ar/models/user_invitation.rb +0 -30
  44. data/lib/authentasaurus/ar/models/validation.rb +0 -27
  45. data/lib/authentasaurus/arel/acts_as_authenticatable.rb +0 -67
  46. data/lib/authentasaurus/arel/authenticatable.rb +0 -21
  47. data/lib/authentasaurus/authorization.rb +0 -344
  48. data/lib/authentasaurus/configuration.rb +0 -30
  49. data/lib/authentasaurus/railtie.rb +0 -10
  50. data/lib/generators/authentasaurus/install/USAGE +0 -5
  51. data/lib/generators/authentasaurus/install/install_generator.rb +0 -10
  52. data/lib/generators/authentasaurus/install/templates/authentasaurus_tasks.rake +0 -48
  53. data/lib/generators/authentasaurus/install/templates/defaults.yml +0 -57
  54. data/lib/generators/authentasaurus/views/USAGE +0 -13
  55. data/lib/generators/authentasaurus/views/templates/areas/edit.html.erb +0 -7
  56. data/lib/generators/authentasaurus/views/templates/areas/index.html.erb +0 -11
  57. data/lib/generators/authentasaurus/views/templates/areas/new.html.erb +0 -7
  58. data/lib/generators/authentasaurus/views/templates/areas/show.html.erb +0 -7
  59. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/invitation_mail.html.erb +0 -4
  60. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/recovery_mail.html.erb +0 -7
  61. data/lib/generators/authentasaurus/views/templates/authentasaurus_emailer/validation_mail.html.erb +0 -6
  62. data/lib/generators/authentasaurus/views/templates/groups/edit.html.erb +0 -7
  63. data/lib/generators/authentasaurus/views/templates/groups/index.html.erb +0 -11
  64. data/lib/generators/authentasaurus/views/templates/groups/new.html.erb +0 -7
  65. data/lib/generators/authentasaurus/views/templates/groups/show.html.erb +0 -7
  66. data/lib/generators/authentasaurus/views/templates/permissions/edit.html.erb +0 -19
  67. data/lib/generators/authentasaurus/views/templates/permissions/index.html.erb +0 -17
  68. data/lib/generators/authentasaurus/views/templates/permissions/new.html.erb +0 -19
  69. data/lib/generators/authentasaurus/views/templates/permissions/show.html.erb +0 -7
  70. data/lib/generators/authentasaurus/views/templates/recoveries/edit.html.erb +0 -24
  71. data/lib/generators/authentasaurus/views/templates/recoveries/new.html.erb +0 -15
  72. data/lib/generators/authentasaurus/views/templates/registrations/new.html.erb +0 -21
  73. data/lib/generators/authentasaurus/views/templates/sessions/new.html.erb +0 -41
  74. data/lib/generators/authentasaurus/views/templates/sessions/no_access.html.erb +0 -1
  75. data/lib/generators/authentasaurus/views/templates/user_invitations/index.html.erb +0 -14
  76. data/lib/generators/authentasaurus/views/templates/user_invitations/new.html.erb +0 -9
  77. data/lib/generators/authentasaurus/views/templates/users/edit.html.erb +0 -27
  78. data/lib/generators/authentasaurus/views/templates/users/index.html.erb +0 -19
  79. data/lib/generators/authentasaurus/views/templates/users/new.html.erb +0 -27
  80. data/lib/generators/authentasaurus/views/templates/users/show.html.erb +0 -11
  81. data/lib/generators/authentasaurus/views/templates/validations/resend_validation_email.html.erb +0 -6
  82. data/lib/generators/authentasaurus/views/templates/validations/validate.html.erb +0 -6
  83. data/lib/generators/authentasaurus/views/views_generator.rb +0 -76
  84. data/rdoc/apple-touch-icon.png +0 -0
  85. data/rdoc/classes/Authentasaurus.html +0 -65
  86. data/rdoc/classes/Authentasaurus/Ac.html +0 -72
  87. data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider.html +0 -104
  88. data/rdoc/classes/Authentasaurus/Ac/ActsAsOverrider/ClassMethods.html +0 -397
  89. data/rdoc/classes/Authentasaurus/Ac/Routing.html +0 -61
  90. data/rdoc/classes/Authentasaurus/Ac/Routing/InstanceMethods.html +0 -390
  91. data/rdoc/classes/Authentasaurus/Ar.html +0 -77
  92. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable.html +0 -107
  93. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/ClassMethods.html +0 -168
  94. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatable/InstanceMethods.html +0 -357
  95. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable.html +0 -109
  96. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/ClassMethods.html +0 -113
  97. data/rdoc/classes/Authentasaurus/Ar/ActsAsAuthenticatableValidatable/InstanceMethods.html +0 -54
  98. data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider.html +0 -104
  99. data/rdoc/classes/Authentasaurus/Ar/ActsAsOverrider/ClassMethods.html +0 -320
  100. data/rdoc/classes/Authentasaurus/Ar/Authenticatable.html +0 -104
  101. data/rdoc/classes/Authentasaurus/Ar/Authenticatable/ClassMethods.html +0 -182
  102. data/rdoc/classes/Authentasaurus/Ar/Migrations.html +0 -63
  103. data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns.html +0 -68
  104. data/rdoc/classes/Authentasaurus/Ar/Migrations/Columns/InstanceMethods.html +0 -106
  105. data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables.html +0 -68
  106. data/rdoc/classes/Authentasaurus/Ar/Migrations/Tables/InstanceMethods.html +0 -703
  107. data/rdoc/classes/Authentasaurus/Arel.html +0 -65
  108. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable.html +0 -107
  109. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/ClassMethods.html +0 -139
  110. data/rdoc/classes/Authentasaurus/Arel/ActsAsAuthenticatable/InstanceMethods.html +0 -113
  111. data/rdoc/classes/Authentasaurus/Arel/Authenticatable.html +0 -105
  112. data/rdoc/classes/Authentasaurus/Arel/Authenticatable/ClassMethods.html +0 -119
  113. data/rdoc/classes/Authentasaurus/Authorization.html +0 -230
  114. data/rdoc/classes/Authentasaurus/Authorization/ActionController.html +0 -63
  115. data/rdoc/classes/Authentasaurus/Authorization/ActionController/ClassMethods.html +0 -263
  116. data/rdoc/classes/Authentasaurus/Authorization/ActionController/InstanceMethods.html +0 -54
  117. data/rdoc/classes/Authentasaurus/Authorization/ActionView.html +0 -54
  118. data/rdoc/classes/Authentasaurus/Authorization/CommonInstanceMethods.html +0 -240
  119. data/rdoc/created.rid +0 -1
  120. data/rdoc/css/main.css +0 -278
  121. data/rdoc/css/panel.css +0 -383
  122. data/rdoc/css/reset.css +0 -53
  123. data/rdoc/favicon.ico +0 -0
  124. data/rdoc/files/README_rdoc.html +0 -366
  125. data/rdoc/files/TODO.html +0 -64
  126. data/rdoc/files/lib/authentasaurus/ac/acts_as_overrider_rb.html +0 -52
  127. data/rdoc/files/lib/authentasaurus/ac/routing_rb.html +0 -60
  128. data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_rb.html +0 -52
  129. data/rdoc/files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html +0 -52
  130. data/rdoc/files/lib/authentasaurus/ar/acts_as_overrider_rb.html +0 -52
  131. data/rdoc/files/lib/authentasaurus/ar/authenticatable_rb.html +0 -52
  132. data/rdoc/files/lib/authentasaurus/ar/migrations_rb.html +0 -52
  133. data/rdoc/files/lib/authentasaurus/arel/acts_as_authenticatable_rb.html +0 -52
  134. data/rdoc/files/lib/authentasaurus/arel/authenticatable_rb.html +0 -72
  135. data/rdoc/files/lib/authentasaurus/authorization_rb.html +0 -208
  136. data/rdoc/i/arrows.png +0 -0
  137. data/rdoc/i/results_bg.png +0 -0
  138. data/rdoc/i/tree_bg.png +0 -0
  139. data/rdoc/index.html +0 -15
  140. data/rdoc/js/jquery-1.3.2.min.js +0 -19
  141. data/rdoc/js/jquery-effect.js +0 -593
  142. data/rdoc/js/main.js +0 -22
  143. data/rdoc/js/searchdoc.js +0 -628
  144. data/rdoc/panel/index.html +0 -71
  145. data/rdoc/panel/search_index.js +0 -1
  146. data/rdoc/panel/tree.js +0 -1
@@ -1,109 +0,0 @@
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::ActsAsAuthenticatableValidatable</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::ActsAsAuthenticatableValidatable
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../../../files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html">lib/authentasaurus/ar/acts_as_authenticatable_validatable.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>I</dt>
43
- <dd>
44
- <ul>
45
-
46
- <li><a href="#M000047">included</a></li>
47
-
48
- </ul>
49
- </dd>
50
-
51
- </dl>
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
- <div class="sectiontitle">Classes and Modules</div>
60
- <ul>
61
-
62
- <li><span class="type">MODULE</span> <a href="ActsAsAuthenticatableValidatable/ClassMethods.html">Authentasaurus::Ar::ActsAsAuthenticatableValidatable::ClassMethods</a></li>
63
-
64
- <li><span class="type">MODULE</span> <a href="ActsAsAuthenticatableValidatable/InstanceMethods.html">Authentasaurus::Ar::ActsAsAuthenticatableValidatable::InstanceMethods</a></li>
65
-
66
- </ul>
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <div class="sectiontitle">Class Public methods</div>
75
-
76
- <div class="method">
77
- <div class="title" id="M000047">
78
-
79
- <a name="M000047"></a><b>included</b>(base)
80
-
81
- </div>
82
-
83
-
84
-
85
-
86
- <div class="sourcecode">
87
- <p class="source-link">
88
- Source: <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show</a>
89
-
90
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb#L3" target="_blank" class="github_url">on GitHub</a>
91
-
92
- </p>
93
- <div id="M000047_source" class="dyn-source">
94
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb, line 3</span>
95
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
96
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:extend</span>, <span class="ruby-constant">ActsAsAuthenticatable</span><span class="ruby-operator">::</span><span class="ruby-constant">ClassMethods</span>
97
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:include</span>, <span class="ruby-constant">ActsAsAuthenticatable</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceMethods</span>
98
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:extend</span>, <span class="ruby-constant">ClassMethods</span>
99
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:include</span>, <span class="ruby-constant">InstanceMethods</span>
100
- <span class="ruby-keyword kw">end</span></pre>
101
- </div>
102
- </div>
103
-
104
- </div>
105
-
106
- </div>
107
- </div>
108
- </body>
109
- </html>
@@ -1,113 +0,0 @@
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::ActsAsAuthenticatableValidatable::ClassMethods</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::ActsAsAuthenticatableValidatable::ClassMethods
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../../../../files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html">lib/authentasaurus/ar/acts_as_authenticatable_validatable.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="#M000048">authenticate</a></li>
47
-
48
- </ul>
49
- </dd>
50
-
51
- </dl>
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
- <div class="sectiontitle">Instance Public methods</div>
66
-
67
- <div class="method">
68
- <div class="title" id="M000048">
69
-
70
- <a name="M000048"></a><b>authenticate</b>(username_or_email, password, remember = false)
71
-
72
- </div>
73
-
74
- <div class="description">
75
- <p>
76
- Authenticates the username (or email) and password
77
- </p>
78
-
79
- </div>
80
-
81
-
82
-
83
-
84
- <div class="sourcecode">
85
- <p class="source-link">
86
- Source: <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show</a>
87
-
88
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb#L12" target="_blank" class="github_url">on GitHub</a>
89
-
90
- </p>
91
- <div id="M000048_source" class="dyn-source">
92
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_authenticatable_validatable.rb, line 12</span>
93
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">authenticate</span>(<span class="ruby-identifier">username_or_email</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">remember</span> = <span class="ruby-keyword kw">false</span>)
94
- <span class="ruby-identifier">user</span>=<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">find_by_username</span>(<span class="ruby-identifier">username_or_email</span>) <span class="ruby-operator">||</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">find_by_email</span>(<span class="ruby-identifier">username_or_email</span>)
95
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">user</span>
96
- <span class="ruby-identifier">expected_password</span>=<span class="ruby-identifier">encrypt_password</span>(<span class="ruby-identifier">password</span>, <span class="ruby-identifier">user</span>.<span class="ruby-identifier">password_seed</span>)
97
- <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">expected_password</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">hashed_password</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">active</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">validation</span>.<span class="ruby-identifier">nil?</span>
98
- <span class="ruby-identifier">user</span> = <span class="ruby-keyword kw">nil</span>
99
- <span class="ruby-keyword kw">else</span>
100
- <span class="ruby-identifier">user</span>.<span class="ruby-identifier">create_remember_me_token</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">remember</span>
101
- <span class="ruby-keyword kw">end</span>
102
- <span class="ruby-keyword kw">end</span>
103
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">user</span>
104
- <span class="ruby-keyword kw">end</span></pre>
105
- </div>
106
- </div>
107
-
108
- </div>
109
-
110
- </div>
111
- </div>
112
- </body>
113
- </html>
@@ -1,54 +0,0 @@
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::ActsAsAuthenticatableValidatable::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::ActsAsAuthenticatableValidatable::InstanceMethods
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../../../../files/lib/authentasaurus/ar/acts_as_authenticatable_validatable_rb.html">lib/authentasaurus/ar/acts_as_authenticatable_validatable.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
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
- </div>
52
- </div>
53
- </body>
54
- </html>
@@ -1,104 +0,0 @@
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::ActsAsOverrider</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::ActsAsOverrider
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../../../files/lib/authentasaurus/ar/acts_as_overrider_rb.html">lib/authentasaurus/ar/acts_as_overrider.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>I</dt>
43
- <dd>
44
- <ul>
45
-
46
- <li><a href="#M000050">included</a></li>
47
-
48
- </ul>
49
- </dd>
50
-
51
- </dl>
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
- <div class="sectiontitle">Classes and Modules</div>
60
- <ul>
61
-
62
- <li><span class="type">MODULE</span> <a href="ActsAsOverrider/ClassMethods.html">Authentasaurus::Ar::ActsAsOverrider::ClassMethods</a></li>
63
-
64
- </ul>
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
- <div class="sectiontitle">Class Public methods</div>
73
-
74
- <div class="method">
75
- <div class="title" id="M000050">
76
-
77
- <a name="M000050"></a><b>included</b>(base)
78
-
79
- </div>
80
-
81
-
82
-
83
-
84
- <div class="sourcecode">
85
- <p class="source-link">
86
- Source: <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show</a>
87
-
88
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L5" target="_blank" class="github_url">on GitHub</a>
89
-
90
- </p>
91
- <div id="M000050_source" class="dyn-source">
92
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 5</span>
93
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
94
- <span class="ruby-identifier">base</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">:extend</span>, <span class="ruby-constant">ClassMethods</span>
95
- <span class="ruby-keyword kw">end</span></pre>
96
- </div>
97
- </div>
98
-
99
- </div>
100
-
101
- </div>
102
- </div>
103
- </body>
104
- </html>
@@ -1,320 +0,0 @@
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::ActsAsOverrider::ClassMethods</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::ActsAsOverrider::ClassMethods
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../../../../files/lib/authentasaurus/ar/acts_as_overrider_rb.html">lib/authentasaurus/ar/acts_as_overrider.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="#M000051">acts_as_area</a>,</li>
47
-
48
- <li><a href="#M000052">acts_as_group</a>,</li>
49
-
50
- <li><a href="#M000053">acts_as_permission</a>,</li>
51
-
52
- <li><a href="#M000054">acts_as_recovery</a>,</li>
53
-
54
- <li><a href="#M000055">acts_as_session</a>,</li>
55
-
56
- <li><a href="#M000056">acts_as_user_invitation</a>,</li>
57
-
58
- <li><a href="#M000057">acts_as_validation</a></li>
59
-
60
- </ul>
61
- </dd>
62
-
63
- </dl>
64
-
65
-
66
-
67
- <div class="sectiontitle">Included Modules</div>
68
- <ul>
69
-
70
- <li>
71
-
72
- <span>Authentasaurus::Ar::Models::Recovery</span>
73
-
74
- START:includes
75
- </li>
76
-
77
- <li>
78
-
79
- <span>Authentasaurus::Ar::Models::Session</span>
80
-
81
- START:includes
82
- </li>
83
-
84
- <li>
85
-
86
- <span>Authentasaurus::Ar::Models::UserInvitation</span>
87
-
88
- START:includes
89
- </li>
90
-
91
- <li>
92
-
93
- <span>Authentasaurus::Ar::Models::Validation</span>
94
-
95
- START:includes
96
- </li>
97
-
98
- </ul>
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <div class="sectiontitle">Instance Public methods</div>
111
-
112
- <div class="method">
113
- <div class="title" id="M000051">
114
-
115
- <a name="M000051"></a><b>acts_as_area</b>()
116
-
117
- </div>
118
-
119
-
120
-
121
-
122
- <div class="sourcecode">
123
- <p class="source-link">
124
- Source: <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show</a>
125
-
126
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L10" target="_blank" class="github_url">on GitHub</a>
127
-
128
- </p>
129
- <div id="M000051_source" class="dyn-source">
130
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 10</span>
131
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_area</span>
132
- <span class="ruby-identifier">unloadable</span>
133
-
134
- <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:permissions</span>, <span class="ruby-identifier">:dependent</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:destroy</span>
135
- <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:groups</span>, <span class="ruby-identifier">:through</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:permissions</span>
136
-
137
- <span class="ruby-identifier">validates_presence_of</span> <span class="ruby-identifier">:name</span>
138
- <span class="ruby-keyword kw">end</span></pre>
139
- </div>
140
- </div>
141
-
142
- </div>
143
-
144
- <div class="method">
145
- <div class="title" id="M000052">
146
-
147
- <a name="M000052"></a><b>acts_as_group</b>()
148
-
149
- </div>
150
-
151
-
152
-
153
-
154
- <div class="sourcecode">
155
- <p class="source-link">
156
- Source: <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show</a>
157
-
158
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L19" target="_blank" class="github_url">on GitHub</a>
159
-
160
- </p>
161
- <div id="M000052_source" class="dyn-source">
162
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 19</span>
163
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_group</span>
164
- <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:permissions</span>, <span class="ruby-identifier">:dependent</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:destroy</span>
165
- <span class="ruby-identifier">has_many</span> <span class="ruby-identifier">:areas</span>, <span class="ruby-identifier">:through</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:permissions</span>
166
-
167
- <span class="ruby-identifier">validates_presence_of</span> <span class="ruby-identifier">:name</span>
168
- <span class="ruby-keyword kw">end</span></pre>
169
- </div>
170
- </div>
171
-
172
- </div>
173
-
174
- <div class="method">
175
- <div class="title" id="M000053">
176
-
177
- <a name="M000053"></a><b>acts_as_permission</b>()
178
-
179
- </div>
180
-
181
-
182
-
183
-
184
- <div class="sourcecode">
185
- <p class="source-link">
186
- Source: <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show</a>
187
-
188
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L26" target="_blank" class="github_url">on GitHub</a>
189
-
190
- </p>
191
- <div id="M000053_source" class="dyn-source">
192
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 26</span>
193
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_permission</span>
194
- <span class="ruby-identifier">unloadable</span>
195
-
196
- <span class="ruby-identifier">belongs_to</span> <span class="ruby-identifier">:group</span>
197
- <span class="ruby-identifier">belongs_to</span> <span class="ruby-identifier">:area</span>
198
-
199
- <span class="ruby-comment cmt"># Check that everything is there</span>
200
- <span class="ruby-identifier">validates_presence_of</span> <span class="ruby-identifier">:group_id</span>, <span class="ruby-identifier">:area_id</span>
201
- <span class="ruby-comment cmt"># Check foreign keys</span>
202
- <span class="ruby-identifier">validates_associated</span> <span class="ruby-identifier">:group</span>, <span class="ruby-identifier">:area</span>
203
- <span class="ruby-keyword kw">end</span></pre>
204
- </div>
205
- </div>
206
-
207
- </div>
208
-
209
- <div class="method">
210
- <div class="title" id="M000054">
211
-
212
- <a name="M000054"></a><b>acts_as_recovery</b>()
213
-
214
- </div>
215
-
216
-
217
-
218
-
219
- <div class="sourcecode">
220
- <p class="source-link">
221
- Source: <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show</a>
222
-
223
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L38" target="_blank" class="github_url">on GitHub</a>
224
-
225
- </p>
226
- <div id="M000054_source" class="dyn-source">
227
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 38</span>
228
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_recovery</span>
229
- <span class="ruby-identifier">include</span> <span class="ruby-constant">Authentasaurus</span><span class="ruby-operator">::</span><span class="ruby-constant">Ar</span><span class="ruby-operator">::</span><span class="ruby-constant">Models</span><span class="ruby-operator">::</span><span class="ruby-constant">Recovery</span>
230
- <span class="ruby-keyword kw">end</span></pre>
231
- </div>
232
- </div>
233
-
234
- </div>
235
-
236
- <div class="method">
237
- <div class="title" id="M000055">
238
-
239
- <a name="M000055"></a><b>acts_as_session</b>()
240
-
241
- </div>
242
-
243
-
244
-
245
-
246
- <div class="sourcecode">
247
- <p class="source-link">
248
- Source: <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show</a>
249
-
250
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L42" target="_blank" class="github_url">on GitHub</a>
251
-
252
- </p>
253
- <div id="M000055_source" class="dyn-source">
254
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 42</span>
255
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_session</span>
256
- <span class="ruby-identifier">include</span> <span class="ruby-constant">Authentasaurus</span><span class="ruby-operator">::</span><span class="ruby-constant">Ar</span><span class="ruby-operator">::</span><span class="ruby-constant">Models</span><span class="ruby-operator">::</span><span class="ruby-constant">Session</span>
257
- <span class="ruby-keyword kw">end</span></pre>
258
- </div>
259
- </div>
260
-
261
- </div>
262
-
263
- <div class="method">
264
- <div class="title" id="M000056">
265
-
266
- <a name="M000056"></a><b>acts_as_user_invitation</b>()
267
-
268
- </div>
269
-
270
-
271
-
272
-
273
- <div class="sourcecode">
274
- <p class="source-link">
275
- Source: <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show</a>
276
-
277
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L46" target="_blank" class="github_url">on GitHub</a>
278
-
279
- </p>
280
- <div id="M000056_source" class="dyn-source">
281
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 46</span>
282
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_user_invitation</span>
283
- <span class="ruby-identifier">include</span> <span class="ruby-constant">Authentasaurus</span><span class="ruby-operator">::</span><span class="ruby-constant">Ar</span><span class="ruby-operator">::</span><span class="ruby-constant">Models</span><span class="ruby-operator">::</span><span class="ruby-constant">UserInvitation</span>
284
- <span class="ruby-keyword kw">end</span></pre>
285
- </div>
286
- </div>
287
-
288
- </div>
289
-
290
- <div class="method">
291
- <div class="title" id="M000057">
292
-
293
- <a name="M000057"></a><b>acts_as_validation</b>()
294
-
295
- </div>
296
-
297
-
298
-
299
-
300
- <div class="sourcecode">
301
- <p class="source-link">
302
- Source: <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show</a>
303
-
304
- | <a href="http://github.com/cousine/Authentasuarus-2/blob/9f35019b78d87fdf386c9d64834171263868b8aa/lib/authentasaurus/ar/acts_as_overrider.rb#L50" target="_blank" class="github_url">on GitHub</a>
305
-
306
- </p>
307
- <div id="M000057_source" class="dyn-source">
308
- <pre><span class="ruby-comment cmt"># File lib/authentasaurus/ar/acts_as_overrider.rb, line 50</span>
309
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">acts_as_validation</span>
310
- <span class="ruby-identifier">include</span> <span class="ruby-constant">Authentasaurus</span><span class="ruby-operator">::</span><span class="ruby-constant">Ar</span><span class="ruby-operator">::</span><span class="ruby-constant">Models</span><span class="ruby-operator">::</span><span class="ruby-constant">Validation</span>
311
- <span class="ruby-keyword kw">end</span></pre>
312
- </div>
313
- </div>
314
-
315
- </div>
316
-
317
- </div>
318
- </div>
319
- </body>
320
- </html>