lib/jpmobile/mailer.rb in jpmobile-7.0.1 vs lib/jpmobile/mailer.rb in jpmobile-7.0.2
- old
+ new
@@ -9,10 +9,10 @@
self._view_paths = self._view_paths.dup
self.view_paths.unshift(Jpmobile::Resolver.new(File.join(::Rails.root, 'app/views')))
def mail(headers = {}, &block)
tos = headers[:to] || self.default_params[:to]
- tos = tos.split(/,/)
+ tos = tos.split(',')
@mobile = if tos.size == 1
# for mobile
(Jpmobile::Email.detect(tos.first) || Jpmobile::Mobile::AbstractMobile).new(nil, nil)
else