-
Notifications
You must be signed in to change notification settings - Fork 0
License
mdeiters/attribute_awareness
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
AttributeAwareness ===================== This plugin allows you a DRY way to define descriptions of your model's attributes in the model itself instead of sprinkle all over the views. Additionally it is aware of validations that are defined on a model. Example ======= class Dog < ActiveRecord::Base describe_attributes :name => 'Some dog's name, typically Fido or Spot' validates_presence_of :age end Dog.new.description_for(:name) #=> 'Some dog's name, typically Fido or Spot' Dog.new.is_required?(:age) #=> true Copyright (c) 2009 Matthew Deiters, released under the MIT license
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published