Module: EasyTalk::ModelHelper
- Extended by:
- T::Sig
- Defined in:
- lib/easy_talk/model_helper.rb
Class Method Summary collapse
Class Method Details
.easytalk_model?(type) ⇒ Boolean
9 10 11 12 13 14 15 |
# File 'lib/easy_talk/model_helper.rb', line 9 def self.easytalk_model?(type) type.is_a?(Class) && type.respond_to?(:schema) && type.respond_to?(:ref_template) && defined?(EasyTalk::Model) && type.include?(EasyTalk::Model) end |