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
e7f69d42
Commit
e7f69d42
authored
Oct 04, 2011
by
Holger Just
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#633] Fix mock of WikiContent::Version for Ruby 1.9
parent
d467f792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
20100804112053_merge_wiki_versions_with_journals.rb
...grate/20100804112053_merge_wiki_versions_with_journals.rb
+5
-4
No files found.
db/migrate/20100804112053_merge_wiki_versions_with_journals.rb
View file @
e7f69d42
...
...
@@ -12,12 +12,13 @@
#++
class
MergeWikiVersionsWithJournals
<
ActiveRecord
::
Migration
def
self
.
up
# This is provided here for migrating up after the WikiContent::Version class has been removed
unless
WikiContent
.
const_defined?
(
"Version"
)
WikiContent
.
const_set
(
"Version"
,
Class
.
new
(
ActiveRecord
::
Base
))
# This is provided here for migrating up after the WikiContent::Version class has been removed
class
WikiContent
<
ActiveRecord
::
Base
class
Version
<
ActiveRecord
::
Base
end
end
def
self
.
up
# avoid touching WikiContent on journal creation
WikiContentJournal
.
class_exec
{
def
touch_journaled_after_creation
...
...
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