⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
MyCyma
All Projects
MyCyma
Overview
Activity
Issues
Repository
Download (325 Bytes)
Statistics
| Branch:
master
| Tag:
0.2.0
| Revision:
root
/
vendor
/
plugins
/
human_names
/
lib
/
human_names.rb
@ b689e231
View
History
Annotate
module
HumanNames
module
ActiveRecord
def
self
.
included
(
base
)
base
.
extend
ClassMethods
end
def
human_name
self
.
class
.
human_name
end
module
ClassMethods
def
human_name
::
ActiveRecord
::
Base
.
human_attribute_table_name_for_error
(
self
.
to_s
.
underscore
)
end
end
end
end
(1-1/1)
Loading...