mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Retab and remove redundant code.
This commit is contained in:
parent
a19e8ea1c4
commit
e86fbbaec5
@ -1,4 +1,5 @@
|
||||
class Photo < ActiveRecord::Base
|
||||
|
||||
has_and_belongs_to_many :categories
|
||||
|
||||
has_attached_file :photo, :styles => { :preview => "600x600",
|
||||
@ -15,8 +16,6 @@ class Photo < ActiveRecord::Base
|
||||
:bucket => 'danbarberphoto',
|
||||
:url => ':s3_domain_url'
|
||||
|
||||
#after_create :get_exif
|
||||
|
||||
@@per_page = 11
|
||||
|
||||
scope :enabled, lambda {
|
||||
@ -43,12 +42,4 @@ class Photo < ActiveRecord::Base
|
||||
self.save
|
||||
end
|
||||
|
||||
#private
|
||||
#def get_exif
|
||||
# exif = MiniExiftool.new photo.queued_for_write[:original].path
|
||||
# self.title = exif.title if self.title.empty?
|
||||
# self.description = exif.description if self.description.empty?
|
||||
# self.taken_at = exif.date_time_original
|
||||
# self.save
|
||||
#end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user