You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
	
		
		
			
				
				
					
						
						
						
							|  | class LibraryApply < ActiveRecord::Base
 | 
						
						
						
							|  |   include AASM
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  |   belongs_to :library
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  |   aasm(:status) do
 | 
						
						
						
							|  |     state :pending, initiali: true
 | 
						
						
						
							|  |     state :refused
 | 
						
						
						
							|  |     state :agreed
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  |     event :refuse do
 | 
						
						
						
							|  |       transitions from: :pending, to: :refused
 | 
						
						
						
							|  |     end
 | 
						
						
						
							|  | 
 | 
						
						
						
							|  |     event :agree do
 | 
						
						
						
							|  |       transitions from: :pending, to: :agreed
 | 
						
						
						
							|  |     end
 | 
						
						
						
							|  |   end
 | 
						
						
						
							|  | end |