app/models/phcscriptcdn/script/author.rb in phcscriptcdn-7.0.1 vs app/models/phcscriptcdn/script/author.rb in phcscriptcdn-7.1.0
- old
+ new
@@ -1,21 +1,21 @@
-module Phcscriptcdn
- class Script::Author < ApplicationRecord
-
- # Clean URLS
- extend FriendlyId
-
- # Listing (None Nested)
- has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
-
- # Validation for Form Fields
- validates :authorfirstname,
- presence: true
-
- validates :authorlastname,
- presence: true
-
- # Clean URLS Slugs
- friendly_id :authorfirstname, use: :slugged
-
- end
+module Phcscriptcdn
+ class Script::Author < ApplicationRecord
+
+ # Clean URLS
+ extend FriendlyId
+
+ # Listing (None Nested)
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
+
+ # Validation for Form Fields
+ validates :authorfirstname,
+ presence: true
+
+ validates :authorlastname,
+ presence: true
+
+ # Clean URLS Slugs
+ friendly_id :authorfirstname, use: :slugged
+
+ end
end
\ No newline at end of file