Sha256: e40b748b67b510b3c1954d25933cfb0b010bcbe4972ff48c293c81ec2e79c1f9
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
o:$YARD::CodeObjects::MethodObject:@current_file_has_commentsT: @linei :@signature"'def acts_as_mail_receiver(options):@scope: instance:@source"údef acts_as_mail_receiver(options) [:payload_columns, :groups].each do |key| methods_array = Array.wrap(options[key]) || [] self.send("#{key}=", methods_array) end check_method_existance! unless options[:skip_method_existance_check] end: @tags[ :@docstringIC:YARD::Docstring"¤NOTICE: Please put this code below any "scope" statement. Here you can define: 1. Which columns can be acted as payload items. 2. Which methods can be user group scopes. ==== Example class User < AR acts_as_mail_receiver :payload_columns => %w{firstname lastname}, :groups => %w{all english_users chinese_users}, :skip_method_existance_check => true end:@ref_tags[ ;[ :@objectu:YARD::StubProxyGMailEngine::ActsAsMailReceiver::ClassMethods#acts_as_mail_receiver: @summary0: @all[">NOTICE: Please put this code below any "scope" statement."Here you can define:"41. Which columns can be acted as payload items."/2. Which methods can be user group scopes."