Skip to content

Commit

Permalink
Removing fixed FIXME comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Jul 30, 2019
1 parent 41a0c3e commit 4d2c947
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions app/models/annotation.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class Annotation < ApplicationRecord
# FIXME: - We should start using strong parameters here in favor of this below
# include ActiveModel::MassAssignmentSecurity
belongs_to :map, optional: true
belongs_to :user, optional: true

Expand Down
3 changes: 1 addition & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class User < ApplicationRecord
validates_length_of :email, within: 6..100 # r@a.wk
validates_uniqueness_of :email

# HACK: HACK HACK -- how to do attr_accessor from here?
# prevents a user from submitting a crafted form that bypasses activation
# Prevents a user from submitting a crafted form that bypasses activation
# anything else you want your user to change should be added here.

# Authenticates a user by their login name and unencrypted password. Returns the user or nil.
Expand Down
3 changes: 0 additions & 3 deletions app/models/warpable.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
class Warpable < ApplicationRecord
# FIXME: - We should start using strong parameters here in favor of this below
# include ActiveModel::MassAssignmentSecurity
# attr_accessible :image

attr_accessor :image
attr_accessor :src, :srcmedium # for json generation
Expand Down

0 comments on commit 4d2c947

Please sign in to comment.