网站系统类图
2015-08-07 21:02:35 0 举报
网站系统类图
作者其他创作
大纲/内容
Plan
+ id: Integer+ time: Time+ takeoff: Sring+ landing: String+ plane_id:String+ num: Integer+ price: Float
ApplicationController
+ logged_in_user()- logged_in?()
SessionsController
+ user: User
+ create()+ destroy()
ArticlesController
+ user : User+ articles : Article
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()+ issue()+ approve(user: User)- article_params()- correct_user?()
ActiveRecord::Base
+ created_at: Time+ update_at: Time
+ has_many()+ attr_accessor()+ before_save()+ before_create()+ belongs_to()+ default_scope()+ validates()+ find_by()+ all()+ first()
UsersController
+ user : User+ article : Article
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()- user_params()- admin_user?()
Article
+ id: Integer+ column_id: Integer+ title: String+ content: String+ picture: String+ user_id: Integer+ approved: Bool+ approved_at: Time+ approved_by: Integer
+ picture_size()+ changeColumn(column_id: Integer)
PlanesController
planes: Planeintro: Article
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()- admin_user?()- selectArticle(intro: Article)
GroupsController
+ users : User+ groups : Group
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()- group_params()- admin_user?()
Group
+ id: Integer+ members: User+ priority: Integer
+ changeUserPriority(users: User)
SessionsHelper
+ log_in(User: user)+ current_user()+ logged_in?()+ forget(User: user)+ log_out()+ remember(User: user)+ current_user?(User: user)+ redirect_back_or(String: url)+ store_location()
PlansController
+ plans : Plan+ user: User+ plane: Plane
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()- admin_user?()- selectPlane(plane: Plane)
Plane
+ id:\t Integer+ type: String+ capacity: Integer+ load: Integer+ range: Integer+ seat: Integer+ bed: Integer+ introdution: Article+ pic: String
ActionController::Base
+ before_action()+ include()
User
+ id: Integer+ group_id: Integer+ name: String+ email: String+ phone: String+ plan_id: String- password_digest: String- remember_digest: String+ priority: Integer
+ digest(String: string)+ new_token()+ remember()+ forget()+authenticated?(String: token)- downcase_email()- has_secure_password?()
0 条评论
下一页