* fixing jamadmin pages
This commit is contained in:
parent
f91fb27d64
commit
7c375278f8
|
|
@ -6,7 +6,7 @@ module JamRuby
|
|||
PRODUCTS = ['JamClient/Win32', 'JamClient/MacOSX']
|
||||
|
||||
self.primary_key = 'id'
|
||||
attr_accessible :version, :uri, :sha1, :environment, :product
|
||||
attr_accessible :version, :uri, :sha1, :environment, :product, as: :admin
|
||||
|
||||
|
||||
mount_uploader :uri, ArtifactUploader
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ module JamRuby
|
|||
|
||||
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
|
||||
|
||||
attr_accessible :email, :sender_id, :autofriend, :note
|
||||
attr_accessible :email, :sender_id, :autofriend, :note, as: :admin
|
||||
attr_accessor :accepted_twice
|
||||
|
||||
self.primary_key = 'id'
|
||||
|
|
|
|||
Loading…
Reference in New Issue