This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
add #html_attr_name
method #62
Open
Description
just a handy helper to add the ActiveRecordBase (on the client) (it would jus be added to InstanceMethods module)
def html_attr_name(attr)
"#{model_name}#{to_key}-#{attr}"
end
See ruby-hyperloop/hyper-react#244 for details on to_key