Simple plugin to generate a formatter decorator for ActiveRecord attributes.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
rails
spec
.gitignore
LICENSE
README
Rakefile
VERSION.yml
formatter-san.gemspec

README

= Formatter-san

Allows you to create an accessor for a formatted version of an attribute.

  class Person < ActiveRecord::Base
    formats :description
  end
  
  person = Person.find(:first)
  person.formatted_description