aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2019-12-19 22:51:47 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2019-12-19 22:51:47 -0800
commitb4d4bd58210868e7200b69c4ab00cbe1429d74e6 (patch)
tree5ba3d8b14bcc4c0ea87bb750090d77ef1e73eef0
parentrubocop: Lint/AssignmentInCondition (diff)
downloadpackages-5-b4d4bd58210868e7200b69c4ab00cbe1429d74e6.tar.gz
packages-5-b4d4bd58210868e7200b69c4ab00cbe1429d74e6.tar.bz2
packages-5-b4d4bd58210868e7200b69c4ab00cbe1429d74e6.zip
rubocop: Lint/DuplicateMethods
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--app/models/category.rb1
-rw-r--r--app/models/change.rb1
-rw-r--r--app/models/commit.rb1
-rw-r--r--app/models/package.rb1
-rw-r--r--app/models/useflag.rb1
-rw-r--r--app/models/version.rb1
6 files changed, 0 insertions, 6 deletions
diff --git a/app/models/category.rb b/app/models/category.rb
index 03c27ce..11e57ff 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -9,7 +9,6 @@ class Category
description
metadata_hash].freeze
attr_accessor(*ATTRIBUTES)
- attr_reader :attributes
validates :name, presence: true
diff --git a/app/models/change.rb b/app/models/change.rb
index 4b876e1..437e3da 100644
--- a/app/models/change.rb
+++ b/app/models/change.rb
@@ -12,7 +12,6 @@ class Change
arches
commit].freeze
attr_accessor(*ATTRIBUTES)
- attr_reader :attributes
validates :package, presence: true
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 62f8d50..7989236 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -12,7 +12,6 @@ class Commit
created_at
updated_at].freeze
attr_accessor(*ATTRIBUTES)
- attr_reader :attributes
def initialize(attr = {})
attr.each do |k, v|
diff --git a/app/models/package.rb b/app/models/package.rb
index f2c0e69..c10c91e 100644
--- a/app/models/package.rb
+++ b/app/models/package.rb
@@ -20,7 +20,6 @@ class Package
useflags
metadata_hash].freeze
attr_accessor(*ATTRIBUTES)
- attr_reader :attributes
validates :name, presence: true
diff --git a/app/models/useflag.rb b/app/models/useflag.rb
index 768b1f7..74c9ce9 100644
--- a/app/models/useflag.rb
+++ b/app/models/useflag.rb
@@ -11,7 +11,6 @@ class Useflag
:scope,
:use_expand_prefix].freeze
attr_accessor(*ATTRIBUTES)
- attr_reader :attributes
validates :name, presence: true
diff --git a/app/models/version.rb b/app/models/version.rb
index 77b1ca7..3515a0c 100644
--- a/app/models/version.rb
+++ b/app/models/version.rb
@@ -22,7 +22,6 @@ class Version
properties
metadata_hash].freeze
attr_accessor(*ATTRIBUTES)
- attr_reader :attributes
validates :version, presence: true