Created
May 26, 2011 13:38
-
-
Save iHiD/993158 to your computer and use it in GitHub Desktop.
Table Name Bug in Rails 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/application.rb | |
#... | |
config.autoload_paths += %W(#{config.root}/app/models/namespaces) | |
#... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/models/namespaces/exam_room.rb | |
module ExamRoom | |
def self.table_name_prefix | |
'exam_room_' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/models/namespaces/exam_room_practice.rb | |
module ExamRoom::Practice | |
def self.table_name_prefix | |
'exam_room_practice_' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/models/exam_room/practice/question.rb | |
class ExamRoom::Practice::Question < ActiveRecord::Base | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment