Sha256: 46201609a348e4cb800f0e5228487f15a12f340cfde02577bf3cfba1e8fcab38
Contents?: true
Size: 168 Bytes
Versions: 1
Compression:
Stored size: 168 Bytes
Contents
# frozen_string_literal: true module ActiveModel module Conversion def to_component_class "#{self.class.name}Component".safe_constantize end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionview-component-1.6.0 | lib/action_view/component/active_model_conversion_monkey_patch.rb |