Class: App
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- App
- Defined in:
- lib/eco_apps_master/models/app.rb
Instance Method Summary collapse
Instance Method Details
#before_save ⇒ Object
3 4 5 |
# File 'lib/eco_apps_master/models/app.rb', line 3 def before_save self.url= (self.url.blank? ? "/#{self.name}" : self.url) end |