#
# Table name: gpx_files
#
-# id :bigint(8) not null, primary key
-# user_id :bigint(8) not null
+# id :bigint not null, primary key
+# user_id :bigint not null
# visible :boolean default(TRUE), not null
# name :string default(""), not null
-# size :bigint(8)
+# size :bigint
# latitude :float
# longitude :float
# timestamp :datetime not null
:content_type => content_type(attachable.path),
:identify => false)
else
- super(attachable)
+ super
end
end
def public?
- visibility == "public" || visibility == "identifiable"
+ %w[public identifiable].include?(visibility)
end
def trackable?
- visibility == "trackable" || visibility == "identifiable"
+ %w[trackable identifiable].include?(visibility)
end
def identifiable?