Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
c2d058a5
Commit
c2d058a5
authored
May 10, 2011
by
Gregor Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#390] check to handle mysql2's early type casting
parent
13de4cc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wiki_page.rb
app/models/wiki_page.rb
+4
-1
No files found.
app/models/wiki_page.rb
View file @
c2d058a5
...
...
@@ -131,7 +131,10 @@ class WikiPage < ActiveRecord::Base
unless
@updated_on
if
time
=
read_attribute
(
:updated_on
)
# content updated_on was eager loaded with the page
@updated_on
=
Time
.
parse
(
time
)
rescue
nil
unless
time
.
is_a?
Time
time
=
Time
.
parse
(
time
)
rescue
nil
end
@updated_on
=
time
else
@updated_on
=
content
&&
content
.
updated_on
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment