Sha256: 9f12adb3177a6f3129b9cfeb764a08096666dc206dd95d010b80ed70e550bc81

Contents?: true

Size: 1.4 KB

Versions: 9

Compression:

Stored size: 1.4 KB

Contents

o:$YARD::CodeObjects::MethodObject:@current_file_has_commentsT:
@linei,:@scope:
instance:@docstringIC:YARD::Docstring"GCheck if the methods is existed in the User model.
If raise error.:@ref_tags[:@objectu:YARD::StubProxyIMailEngine::ActsAsMailReceiver::ClassMethods#check_method_existance!:
@summary0:	@all["7Check if the methods is existed in the User model."If raise error.:@line_rangeo:
Range:endi+:
begini*:	exclF:
@tags[:@parameters[:@namespaceu;1MailEngine::ActsAsMailReceiver::ClassMethods:@files[["-lib/mail_engine/acts_as_mail_receiver.rbi,:
@name:check_method_existance!:
@dynamicT:
@path"IMailEngine::ActsAsMailReceiver::ClassMethods#check_method_existance!:@docstring_extra0:@visibility:private:@source_type:	ruby:@signature" def check_method_existance!:@source"adef check_method_existance!
  return false if defined?(Rake) && Rake.application.top_level_tasks.include?("db:migrate")

  nonexist_groups = self.groups.select do |group|
    !self.methods.include?(group)
  end

  nonexist_payload_columns = self.payload_columns.select do |col|
    !self.instance_methods.include?(col) and !self.column_names.include?(col)
  end

  raise "Doesn't find group methods in #{self.name}:#{nonexist_groups.inspect}" if nonexist_groups.present?
  raise "Doesn't find payload column methods in #{self.name}:#{nonexist_payload_columns.inspect}" if nonexist_payload_columns.present?
end:@explicitT;[

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mail_engine-0.1.15 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.14 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.13 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.12 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.11 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.10 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.9 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.8 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat
mail_engine-0.1.7 .yardoc/objects/MailEngine/ActsAsMailReceiver/ClassMethods/check_method_existance_21_i.dat