Implements sign up during registration. Solves most of #215
This commit is contained in:
parent
511007138a
commit
e8ab94e1c7
12 changed files with 101 additions and 36 deletions
|
|
@ -121,6 +121,10 @@ class Ability
|
|||
can :show, Commercial, commercialable_type: 'Event', commercialable_id: Event.where(state: 'confirmed').pluck(:id)
|
||||
# can view others
|
||||
can :show, User
|
||||
# can register
|
||||
can [:show, :create], Registration do |registration|
|
||||
registration.new_record?
|
||||
end
|
||||
end
|
||||
|
||||
def signed_in(user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue