Merge pull request #560 from hennevogel/feature-user-view
Various small UI fixes
This commit is contained in:
commit
b65a33f047
64 changed files with 932 additions and 2243 deletions
|
|
@ -59,13 +59,17 @@ class User < ActiveRecord::Base
|
|||
self.subscriptions.find_by(conference_id: conference.id).present?
|
||||
end
|
||||
|
||||
# Returns the ticket purchased ticket
|
||||
# Returns the purchased ticket
|
||||
# ====Returns
|
||||
# * +TicketUser::ActiveRecord_Relation+ -> user
|
||||
def ticket(id)
|
||||
ticket_purchases.where(ticket_id: id).first
|
||||
end
|
||||
|
||||
def supports? conference
|
||||
ticket_purchases.find_by(conference_id: conference.id).present?
|
||||
end
|
||||
|
||||
def self.for_ichain_username(username, attributes)
|
||||
user = find_by(username: username)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue