Skip to content

carlosparamio/acts_as_inquirable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

class Person < ActiveRecord::Base
  acts_as_inquirable :status
end

person = Person.new(:status => "pending")
person.status.pending?  # true

Credits

Carlos Paramio

h1labs.com

About

A helper to wrap an ActiveRecord attribute with ActiveSupport::StringInquirer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages