Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User < ActiveRecord::Base
- # username, password
- end
- class Admin < User
- # an_attribute
- end
- Admin.create(:an_attribute => "hello", :username => "haxoor", :password => "1234")
- admin = Admin.find_by_an_attribute("hello")
- admin.username # ??
Add Comment
Please, Sign In to add comment