app/models/spree/newsletter.rb in solidus_newsletter-1.0 vs app/models/spree/newsletter.rb in solidus_newsletter-1.1
- old
+ new
@@ -1,6 +1,8 @@
+# frozen_string_literal: true
+
module Spree
class Newsletter < Spree::Base
validates :name, presence: true
validates :email, presence: true, uniqueness: true
end
-end
\ No newline at end of file
+end