remove things again not needed

This commit is contained in:
Connor Turland 2016-03-12 11:53:12 +11:00
parent a78312f90c
commit 7f86810f62
2 changed files with 0 additions and 12 deletions

View file

@ -26,12 +26,4 @@ class Mapping < ActiveRecord::Base
super(:methods =>[:user_name, :user_image])
end
def authorize_to_show(user)
if ((self.map.permission == "private" && self.map.user != user) ||
(self.mappable.permission == "private" && self.mappable.user != user))
return false
end
return self
end
end

View file

@ -41,10 +41,6 @@ class User < ActiveRecord::Base
# Validate the attached image is image/jpg, image/png, etc
validates_attachment_content_type :image, :content_type => /\Aimage\/.*\Z/
def is_logged_in?
true
end
# override default as_json
def as_json(options={})
{ :id => self.id,