mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge branch 'rabl' of https://github.com/remiprev/linguist into remiprev-rabl
This commit is contained in:
		
							
								
								
									
										16
									
								
								samples/ruby/rabl.rabl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								samples/ruby/rabl.rabl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | |||||||
|  | object @user => :person | ||||||
|  |  | ||||||
|  | attributes :username, :email, :location | ||||||
|  | attributes :created_at => :registered_at | ||||||
|  |  | ||||||
|  | node :role do |user| | ||||||
|  |   user.is_admin ? 'admin' : 'normal' | ||||||
|  | end | ||||||
|  |  | ||||||
|  | child :phone_numbers => :pnumbers do | ||||||
|  |   extends "users/phone_number" | ||||||
|  | end | ||||||
|  |  | ||||||
|  | node :node_numbers do |u| | ||||||
|  |   partial("users/phone_number", :object => u.phone_numbers) | ||||||
|  | end | ||||||
		Reference in New Issue
	
	Block a user