remove things again not needed
This commit is contained in:
parent
a78312f90c
commit
7f86810f62
2 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue