Module: Enumy::Rails::InitializerInterceptor
- Included in:
- Enum
- Defined in:
- lib/enumy/rails/initializer_interceptor.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
4 5 6 7 8 9 |
# File 'lib/enumy/rails/initializer_interceptor.rb', line 4 def initialize # Intentionally left blank to intercept the original initialize method # We do this because we want to use ActiveModel::Attributes for attribute handling # but ActiveModel::Attributes calls super without arguments, # which would call the original initialize method without arguments and raise an error. end |