Class: Shelf

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/shelf.rb

Instance Method Summary collapse

Instance Method Details

#screen_nameObject


10
11
12
13
14
# File 'app/models/shelf.rb', line 10

def screen_name
  return name if name.present? and not built_in?

  return default_name.humanize if built_in?
end