mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-11-03 17:15:34 -05:00 
			
		
		
		
	Rename models to singular
This commit is contained in:
		
							parent
							
								
									4e6abf4a52
								
							
						
					
					
						commit
						b4f2abf05f
					
				@ -1,6 +1,10 @@
 | 
				
			|||||||
class ActsAsLoggable::BikeActions < ActiveRecord::Base
 | 
					class ActsAsLoggable::BikeAction < ActiveRecord::Base
 | 
				
			||||||
  #set_fixture_class :bike_actions => ActsAsLoggable::BikeActions
 | 
					  #set_fixture_class :bike_actions => ActsAsLoggable::BikeActions
 | 
				
			||||||
  attr_accessible :action
 | 
					  attr_accessible :action
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  belongs_to :bike
 | 
					  belongs_to :bike
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  def to_s
 | 
				
			||||||
 | 
					    self.action
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
@ -1,6 +1,10 @@
 | 
				
			|||||||
#this might be good for logging CRUD actions
 | 
					#this might be good for logging CRUD actions
 | 
				
			||||||
class ActsAsLoggable::LogActions < ActiveRecord::Base
 | 
					class ActsAsLoggable::LogAction < ActiveRecord::Base
 | 
				
			||||||
  attr_accessible :action
 | 
					  attr_accessible :action
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  belongs_to :log
 | 
					  belongs_to :log
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  def to_s
 | 
				
			||||||
 | 
					    self.action
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
							
								
								
									
										9
									
								
								app/models/acts_as_loggable/transaction_action.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/models/acts_as_loggable/transaction_action.rb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					class ActsAsLoggable::TransactionAction < ActiveRecord::Base
 | 
				
			||||||
 | 
					  attr_accessible :action
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  belongs_to :bike
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  def to_s
 | 
				
			||||||
 | 
					    self.action
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
@ -1,5 +0,0 @@
 | 
				
			|||||||
class ActsAsLoggable::TransactionActions < ActiveRecord::Base
 | 
					 | 
				
			||||||
  attr_accessible :action
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  belongs_to :bike
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
							
								
								
									
										9
									
								
								app/models/acts_as_loggable/user_action.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/models/acts_as_loggable/user_action.rb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					class ActsAsLoggable::UserAction < ActiveRecord::Base
 | 
				
			||||||
 | 
					  attr_accessible :action
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  belongs_to :bike
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  def to_s
 | 
				
			||||||
 | 
					    self.action
 | 
				
			||||||
 | 
					  end
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
@ -1,5 +0,0 @@
 | 
				
			|||||||
class ActsAsLoggable::UserActions < ActiveRecord::Base
 | 
					 | 
				
			||||||
  attr_accessible :action
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  belongs_to :bike
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user