Module: Shamu::Attributes::CamelCase
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/shamu/attributes/camel_case.rb
Overview
Automatically add camelCase aliases for all attributes.
Class Method Summary collapse
Class Method Details
.attribute(name, *args, **options, &block) ⇒ Object
13 14 15 16 |
# File 'lib/shamu/attributes/camel_case.rb', line 13 def attribute( name, *args, **, &block ) [ :as ] ||= name.to_s.camelize( :lower ).to_sym super end |