muck-engine 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Rakefile +7 -4
- data/VERSION +1 -1
- data/locales/ar.yml +1 -0
- data/locales/bg.yml +1 -0
- data/locales/ca.yml +1 -0
- data/locales/cs.yml +1 -0
- data/locales/da.yml +1 -0
- data/locales/de.yml +1 -0
- data/locales/el.yml +1 -0
- data/locales/es.yml +1 -0
- data/locales/et.yml +19 -0
- data/locales/fa.yml +19 -0
- data/locales/fi.yml +19 -0
- data/locales/fr.yml +1 -0
- data/locales/gl.yml +19 -0
- data/locales/hi.yml +19 -0
- data/locales/hr.yml +19 -0
- data/locales/hu.yml +19 -0
- data/locales/id.yml +19 -0
- data/locales/it.yml +1 -0
- data/locales/iw.yml +1 -0
- data/locales/ja.yml +1 -0
- data/locales/ko.yml +1 -0
- data/locales/lt.yml +1 -0
- data/locales/lv.yml +1 -0
- data/locales/mt.yml +19 -0
- data/locales/nl.yml +1 -0
- data/locales/no.yml +1 -0
- data/locales/pl.yml +1 -0
- data/locales/pt-PT.yml +19 -0
- data/locales/ro.yml +1 -0
- data/locales/ru.yml +1 -0
- data/locales/sk.yml +1 -0
- data/locales/sl.yml +1 -0
- data/locales/sq.yml +19 -0
- data/locales/sr.yml +1 -0
- data/locales/sv.yml +1 -0
- data/locales/th.yml +19 -0
- data/locales/tl.yml +1 -0
- data/locales/tr.yml +19 -0
- data/locales/uk.yml +1 -0
- data/locales/vi.yml +1 -0
- data/locales/zh-CN.yml +1 -0
- data/locales/zh-TW.yml +1 -0
- data/locales/zh.yml +1 -0
- data/muck-engine.gemspec +30 -25
- metadata +16 -24
- data/pkg/muck-engine-0.1.14.gem +0 -0
- data/rdoc/classes/ActionController.html +0 -111
- data/rdoc/classes/ActionController/MuckApplication.html +0 -157
- data/rdoc/classes/ActionController/MuckApplication/ClassMethods.html +0 -105
- data/rdoc/classes/ActionController/MuckApplication/InstanceMethods.html +0 -412
- data/rdoc/classes/ActiveRecord.html +0 -111
- data/rdoc/classes/ActiveRecord/MuckModel.html +0 -157
- data/rdoc/classes/ActiveRecord/MuckModel/ClassMethods.html +0 -105
- data/rdoc/classes/ActiveRecord/MuckModel/InstanceMethods.html +0 -169
- data/rdoc/classes/MuckEngine.html +0 -117
- data/rdoc/classes/MuckEngine/Tasks.html +0 -146
- data/rdoc/created.rid +0 -1
- data/rdoc/files/README_rdoc.html +0 -222
- data/rdoc/files/lib/action_controller/muck_application_rb.html +0 -101
- data/rdoc/files/lib/active_record/muck_model_rb.html +0 -101
- data/rdoc/files/lib/muck_engine/tasks_rb.html +0 -111
- data/rdoc/files/lib/muck_engine_rb.html +0 -101
- data/rdoc/fr_class_index.html +0 -36
- data/rdoc/fr_file_index.html +0 -31
- data/rdoc/fr_method_index.html +0 -41
- data/rdoc/index.html +0 -24
- data/rdoc/rdoc-style.css +0 -208
@@ -1,111 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: ActiveRecord</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">ActiveRecord</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/active_record/muck_model_rb.html">
|
59
|
-
lib/active_record/muck_model.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
|
80
|
-
</div>
|
81
|
-
|
82
|
-
|
83
|
-
<!-- if includes -->
|
84
|
-
|
85
|
-
<div id="section">
|
86
|
-
|
87
|
-
<div id="class-list">
|
88
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
89
|
-
|
90
|
-
Module <a href="ActiveRecord/MuckModel.html" class="link">ActiveRecord::MuckModel</a><br />
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<!-- if method_list -->
|
101
|
-
|
102
|
-
|
103
|
-
</div>
|
104
|
-
|
105
|
-
|
106
|
-
<div id="validator-badges">
|
107
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
-
</div>
|
109
|
-
|
110
|
-
</body>
|
111
|
-
</html>
|
@@ -1,157 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: ActiveRecord::MuckModel</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">ActiveRecord::MuckModel</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/active_record/muck_model_rb.html">
|
59
|
-
lib/active_record/muck_model.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="method-list">
|
80
|
-
<h3 class="section-bar">Methods</h3>
|
81
|
-
|
82
|
-
<div class="name-list">
|
83
|
-
<a href="#M000013">included</a>
|
84
|
-
</div>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
<!-- if includes -->
|
91
|
-
<div id="includes">
|
92
|
-
<h3 class="section-bar">Included Modules</h3>
|
93
|
-
|
94
|
-
<div id="includes-list">
|
95
|
-
<span class="include-name"><a href="MuckModel/InstanceMethods.html">InstanceMethods</a></span>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
|
99
|
-
<div id="section">
|
100
|
-
|
101
|
-
<div id="class-list">
|
102
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
103
|
-
|
104
|
-
Module <a href="MuckModel/ClassMethods.html" class="link">ActiveRecord::MuckModel::ClassMethods</a><br />
|
105
|
-
Module <a href="MuckModel/InstanceMethods.html" class="link">ActiveRecord::MuckModel::InstanceMethods</a><br />
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<!-- if method_list -->
|
116
|
-
<div id="methods">
|
117
|
-
<h3 class="section-bar">Public Class methods</h3>
|
118
|
-
|
119
|
-
<div id="method-M000013" class="method-detail">
|
120
|
-
<a name="M000013"></a>
|
121
|
-
|
122
|
-
<div class="method-heading">
|
123
|
-
<a href="#M000013" class="method-signature">
|
124
|
-
<span class="method-name">included</span><span class="method-args">(receiver)</span>
|
125
|
-
</a>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
<div class="method-description">
|
129
|
-
<p><a class="source-toggle" href="#"
|
130
|
-
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
131
|
-
<div class="method-source-code" id="M000013-source">
|
132
|
-
<pre>
|
133
|
-
<span class="ruby-comment cmt"># File lib/active_record/muck_model.rb, line 25</span>
|
134
|
-
25: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">receiver</span>)
|
135
|
-
26: <span class="ruby-identifier">receiver</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">ClassMethods</span>
|
136
|
-
27: <span class="ruby-identifier">receiver</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
|
137
|
-
28: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>
|
138
|
-
29: <span class="ruby-keyword kw">end</span>
|
139
|
-
30: <span class="ruby-keyword kw">end</span>
|
140
|
-
</pre>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
|
146
|
-
</div>
|
147
|
-
|
148
|
-
|
149
|
-
</div>
|
150
|
-
|
151
|
-
|
152
|
-
<div id="validator-badges">
|
153
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
</body>
|
157
|
-
</html>
|
@@ -1,105 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: ActiveRecord::MuckModel::ClassMethods</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">ActiveRecord::MuckModel::ClassMethods</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/active_record/muck_model_rb.html">
|
59
|
-
lib/active_record/muck_model.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
|
80
|
-
</div>
|
81
|
-
|
82
|
-
|
83
|
-
<!-- if includes -->
|
84
|
-
|
85
|
-
<div id="section">
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
<!-- if method_list -->
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
<div id="validator-badges">
|
101
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
102
|
-
</div>
|
103
|
-
|
104
|
-
</body>
|
105
|
-
</html>
|
@@ -1,169 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: ActiveRecord::MuckModel::InstanceMethods</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">ActiveRecord::MuckModel::InstanceMethods</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/active_record/muck_model_rb.html">
|
59
|
-
lib/active_record/muck_model.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="method-list">
|
80
|
-
<h3 class="section-bar">Methods</h3>
|
81
|
-
|
82
|
-
<div class="name-list">
|
83
|
-
<a href="#M000014">dom_id</a>
|
84
|
-
<a href="#M000015">errors_to_s</a>
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
<!-- if includes -->
|
92
|
-
|
93
|
-
<div id="section">
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<!-- if method_list -->
|
103
|
-
<div id="methods">
|
104
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
105
|
-
|
106
|
-
<div id="method-M000014" class="method-detail">
|
107
|
-
<a name="M000014"></a>
|
108
|
-
|
109
|
-
<div class="method-heading">
|
110
|
-
<a href="#M000014" class="method-signature">
|
111
|
-
<span class="method-name">dom_id</span><span class="method-args">(prefix='')</span>
|
112
|
-
</a>
|
113
|
-
</div>
|
114
|
-
|
115
|
-
<div class="method-description">
|
116
|
-
<p><a class="source-toggle" href="#"
|
117
|
-
onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
|
118
|
-
<div class="method-source-code" id="M000014-source">
|
119
|
-
<pre>
|
120
|
-
<span class="ruby-comment cmt"># File lib/active_record/muck_model.rb, line 11</span>
|
121
|
-
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dom_id</span>(<span class="ruby-identifier">prefix</span>=<span class="ruby-value str">''</span>)
|
122
|
-
12: <span class="ruby-identifier">display_id</span> = <span class="ruby-identifier">new_record?</span> <span class="ruby-value">? </span><span class="ruby-value str">"new"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>
|
123
|
-
13: <span class="ruby-identifier">prefix</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator"><<</span>( <span class="ruby-value str">'_'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">prefix</span>.<span class="ruby-identifier">blank?</span>
|
124
|
-
14: <span class="ruby-identifier">prefix</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{self.class.name.underscore}"</span>
|
125
|
-
15: <span class="ruby-identifier">prefix</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:bare</span> <span class="ruby-operator">?</span> <span class="ruby-node">"#{prefix.to_s.underscore}_#{display_id}"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">display_id</span>
|
126
|
-
16: <span class="ruby-keyword kw">end</span>
|
127
|
-
</pre>
|
128
|
-
</div>
|
129
|
-
</div>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
<div id="method-M000015" class="method-detail">
|
133
|
-
<a name="M000015"></a>
|
134
|
-
|
135
|
-
<div class="method-heading">
|
136
|
-
<a href="#M000015" class="method-signature">
|
137
|
-
<span class="method-name">errors_to_s</span><span class="method-args">()</span>
|
138
|
-
</a>
|
139
|
-
</div>
|
140
|
-
|
141
|
-
<div class="method-description">
|
142
|
-
<p><a class="source-toggle" href="#"
|
143
|
-
onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
|
144
|
-
<div class="method-source-code" id="M000015-source">
|
145
|
-
<pre>
|
146
|
-
<span class="ruby-comment cmt"># File lib/active_record/muck_model.rb, line 18</span>
|
147
|
-
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">errors_to_s</span>
|
148
|
-
19: <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span>, <span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
|
149
|
-
20: <span class="ruby-node">"#{e.humanize unless e == "base"} #{m}\n"</span>
|
150
|
-
21: <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">chomp</span>
|
151
|
-
22: <span class="ruby-keyword kw">end</span>
|
152
|
-
</pre>
|
153
|
-
</div>
|
154
|
-
</div>
|
155
|
-
</div>
|
156
|
-
|
157
|
-
|
158
|
-
</div>
|
159
|
-
|
160
|
-
|
161
|
-
</div>
|
162
|
-
|
163
|
-
|
164
|
-
<div id="validator-badges">
|
165
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
166
|
-
</div>
|
167
|
-
|
168
|
-
</body>
|
169
|
-
</html>
|