Class: Profile

Inherits:
User
  • Object
show all
Defined in:
app/models/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#crop_hObject

crop_uploaded :portrait



6
7
8
# File 'app/models/profile.rb', line 6

def crop_h
  @crop_h
end

#crop_wObject

crop_uploaded :portrait



6
7
8
# File 'app/models/profile.rb', line 6

def crop_w
  @crop_w
end

#crop_xObject

crop_uploaded :portrait



6
7
8
# File 'app/models/profile.rb', line 6

def crop_x
  @crop_x
end

#crop_yObject

crop_uploaded :portrait



6
7
8
# File 'app/models/profile.rb', line 6

def crop_y
  @crop_y
end

Instance Method Details

#crop_portraitObject



10
11
12
# File 'app/models/profile.rb', line 10

def crop_portrait
  portrait.recreate_versions! if crop_x.present?
end