public
Created

  • Download Gist
user.rb
Ruby
1 2 3 4 5 6 7 8
class User < ActiveRecord::Base
def name=(name)
self[:name] = name.downcase
end
def name
self[:name].capitalize
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.