module Shamu::Attributes::CamelCase
Automatically add camelCase aliases for all attributes.
Public Instance Methods
attribute( name, *args, **options, &block )
click to toggle source
Calls superclass method
# File lib/shamu/attributes/camel_case.rb, line 13 def attribute( name, *args, **options, &block ) options[ :as ] ||= name.to_s.camelize( :lower ).to_sym super end