Skip to content
This repository
Browse code

tidying models from app/model to subdirs

  • Loading branch information...
commit 727a5e2b9a440361a7520d7a99285e72eb5b1f93 1 parent 59189fd
Jake Benilov authored January 28, 2013
2  app/models/campaign.rb → app/models/campaign/campaign.rb
... ...
@@ -1,4 +1,4 @@
1  
-require 'tableless_model'
  1
+require 'shared/tableless_model'
2 2
 
3 3
 class Campaign < TablelessModel
4 4
   attr_accessor :title, :erg_reference_number, :start_date, :description, :affiliated_group_or_company, :info_url
4  app/models/campaign_request.rb → app/models/campaign/campaign_request.rb
... ...
@@ -1,5 +1,5 @@
1  
-require 'tableless_model'
2  
-require 'with_requester'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_requester'
3 3
 
4 4
 class CampaignRequest < TablelessModel
5 5
   include WithRequester
8  app/models/content_change_request.rb → app/models/content_change/content_change_request.rb
... ...
@@ -1,7 +1,7 @@
1  
-require 'tableless_model'
2  
-require 'with_requester'
3  
-require 'with_time_constraint'
4  
-require 'with_request_context'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_requester'
  3
+require 'shared/with_time_constraint'
  4
+require 'shared/with_request_context'
5 5
 
6 6
 class ContentChangeRequest < TablelessModel
7 7
   include WithRequester
6  app/models/create_new_user_request.rb → ...models/create_new_user/create_new_user_request.rb
... ...
@@ -1,6 +1,6 @@
1  
-require 'tableless_model'
2  
-require 'with_requester'
3  
-require 'with_tool_role_choice'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_requester'
  3
+require 'shared/with_tool_role_choice'
4 4
 
5 5
 class CreateNewUserRequest < TablelessModel
6 6
   include WithRequester
2  app/models/requested_user.rb → app/models/create_new_user/requested_user.rb
... ...
@@ -1,4 +1,4 @@
1  
-require 'tableless_model'
  1
+require 'shared/tableless_model'
2 2
 
3 3
 class RequestedUser < TablelessModel
4 4
   attr_accessor :name, :email, :job, :phone
4  app/models/general_request.rb → app/models/general/general_request.rb
... ...
@@ -1,5 +1,5 @@
1  
-require 'tableless_model'
2  
-require 'with_requester'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_requester'
3 3
 
4 4
 class GeneralRequest < TablelessModel
5 5
   include WithRequester
8  app/models/new_feature_request.rb → app/models/new_feature/new_feature_request.rb
... ...
@@ -1,7 +1,7 @@
1  
-require 'tableless_model'
2  
-require 'with_requester'
3  
-require 'with_time_constraint'
4  
-require 'with_request_context'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_requester'
  3
+require 'shared/with_time_constraint'
  4
+require 'shared/with_request_context'
5 5
 
6 6
 class NewFeatureRequest < TablelessModel
7 7
   include WithRequester
8  app/models/remove_user_request.rb → app/models/remove_user/remove_user_request.rb
... ...
@@ -1,7 +1,7 @@
1  
-require 'tableless_model'
2  
-require 'with_requester'
3  
-require 'with_tool_role_choice'
4  
-require 'with_time_constraint'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_requester'
  3
+require 'shared/with_tool_role_choice'
  4
+require 'shared/with_time_constraint'
5 5
 
6 6
 class RemoveUserRequest < TablelessModel
7 7
   include WithRequester
2  app/models/requester.rb → app/models/shared/requester.rb
... ...
@@ -1,4 +1,4 @@
1  
-require 'tableless_model'
  1
+require 'shared/tableless_model'
2 2
 
3 3
 class Requester < TablelessModel
4 4
   attr_accessor :email
0  app/models/tableless_model.rb → app/models/shared/tableless_model.rb
File renamed without changes
2  app/models/time_constraint.rb → app/models/shared/time_constraint.rb
... ...
@@ -1,4 +1,4 @@
1  
-require 'tableless_model'
  1
+require 'shared/tableless_model'
2 2
 
3 3
 class TimeConstraint < TablelessModel
4 4
   attr_accessor :not_before_date, :needed_by_date, :time_constraint_reason
0  app/models/with_request_context.rb → app/models/shared/with_request_context.rb
File renamed without changes
2  app/models/with_requester.rb → app/models/shared/with_requester.rb
... ...
@@ -1,4 +1,4 @@
1  
-require 'requester'
  1
+require 'shared/requester'
2 2
 
3 3
 module WithRequester
4 4
   def self.included(base)
2  app/models/with_time_constraint.rb → app/models/shared/with_time_constraint.rb
... ...
@@ -1,4 +1,4 @@
1  
-require 'time_constraint'
  1
+require 'shared/time_constraint'
2 2
 
3 3
 module WithTimeConstraint
4 4
   def self.included(base)
0  app/models/with_tool_role_choice.rb → app/models/shared/with_tool_role_choice.rb
File renamed without changes
2  test/functional/requests_controller_test.rb
... ...
@@ -1,5 +1,5 @@
1 1
 require 'test_helper'
2  
-require 'tableless_model'
  2
+require 'shared/tableless_model'
3 3
 require 'zendesk_ticket'
4 4
 
5 5
 class TestRequest < TablelessModel
4  test/unit/models/with_request_context_test.rb
... ...
@@ -1,5 +1,5 @@
1  
-require 'tableless_model'
2  
-require 'with_request_context'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_request_context'
3 3
 require 'test_helper'
4 4
 
5 5
 class TestModelWithRequestContext < TablelessModel
4  test/unit/models/with_tool_role_choice_test.rb
... ...
@@ -1,5 +1,5 @@
1  
-require 'tableless_model'
2  
-require 'with_tool_role_choice'
  1
+require 'shared/tableless_model'
  2
+require 'shared/with_tool_role_choice'
3 3
 require 'test_helper'
4 4
 
5 5
 class TestModelWithToolRoleChoice < TablelessModel

0 notes on commit 727a5e2

Please sign in to comment.
Something went wrong with that request. Please try again.