forked from NUBIC/surveyor
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
They were causing circular dependency errors in development when classes changed and had to be recompiled. Turns out they're no longer needed for Rails 4: thoughtbot/clearance#276 thoughtbot/clearance#277 In development if I change one of the classes it recompiles, even without the "unloadable" declaration, and I no longer get circular dependency errors.
- Loading branch information
toby cabot
committed
Aug 16, 2013
1 parent
33a9f62
commit d6dbce5
Showing
13 changed files
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Surveyor Controller allows a user to take a survey. It is semi-RESTful since it does not have a concrete representation model. | ||
# The "resource" is a survey attempt/session populating a response set. | ||
class SurveyorController < ApplicationController | ||
unloadable | ||
include Surveyor::SurveyorControllerMethods | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class Answer < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::AnswerMethods | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class Dependency < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::DependencyMethods | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class DependencyCondition < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::DependencyConditionMethods | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class Question < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::QuestionMethods | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class QuestionGroup < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::QuestionGroupMethods | ||
|
||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class Response < ActiveRecord::Base | ||
unloadable | ||
include ActionView::Helpers::SanitizeHelper | ||
include Surveyor::Models::ResponseMethods | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class ResponseSet < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::ResponseSetMethods | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class Survey < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::SurveyMethods | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class SurveySection < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::SurveySectionMethods | ||
end | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class SurveyTranslation < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::SurveyTranslationMethods | ||
end | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class Validation < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::ValidationMethods | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
class ValidationCondition < ActiveRecord::Base | ||
unloadable | ||
include Surveyor::Models::ValidationConditionMethods | ||
end |