Module: EasyTalk::ModelHelper
- Defined in:
- lib/easy_talk/model_helper.rb
Class Method Summary collapse
Class Method Details
.easytalk_model?(type) ⇒ Boolean
5 6 7 8 9 10 11 |
# File 'lib/easy_talk/model_helper.rb', line 5 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 |