diff --git a/app/models/budget.rb b/app/models/budget.rb index fffb4f342..b31f08ed5 100644 --- a/app/models/budget.rb +++ b/app/models/budget.rb @@ -34,7 +34,7 @@ class Budget < ApplicationRecord has_many :groups, dependent: :destroy has_many :headings, through: :groups has_many :lines, through: :ballots, class_name: "Budget::Ballot::Line" - has_many :phases, class_name: Budget::Phase + has_many :phases, class_name: "Budget::Phase" has_one :poll diff --git a/app/models/community.rb b/app/models/community.rb index 776f0b47d..c4430a2ca 100644 --- a/app/models/community.rb +++ b/app/models/community.rb @@ -1,6 +1,6 @@ class Community < ApplicationRecord has_one :proposal - has_one :investment, class_name: Budget::Investment + has_one :investment, class_name: "Budget::Investment" has_many :topics def participants diff --git a/app/models/map_location.rb b/app/models/map_location.rb index d69c97ea3..25adaeca8 100644 --- a/app/models/map_location.rb +++ b/app/models/map_location.rb @@ -1,7 +1,7 @@ class MapLocation < ApplicationRecord belongs_to :proposal, touch: true - belongs_to :investment, class_name: Budget::Investment, touch: true + belongs_to :investment, class_name: "Budget::Investment", touch: true validates :longitude, :latitude, :zoom, presence: true, numericality: true diff --git a/app/models/poll/ballot.rb b/app/models/poll/ballot.rb index 9572c7cfc..09cbf5916 100644 --- a/app/models/poll/ballot.rb +++ b/app/models/poll/ballot.rb @@ -1,5 +1,5 @@ class Poll::Ballot < ApplicationRecord - belongs_to :ballot_sheet, class_name: Poll::BallotSheet + belongs_to :ballot_sheet, class_name: "Poll::BallotSheet" validates :ballot_sheet_id, presence: true diff --git a/app/models/poll/ballot_sheet.rb b/app/models/poll/ballot_sheet.rb index 70e058dac..051f3cabc 100644 --- a/app/models/poll/ballot_sheet.rb +++ b/app/models/poll/ballot_sheet.rb @@ -1,7 +1,7 @@ class Poll::BallotSheet < ApplicationRecord belongs_to :poll belongs_to :officer_assignment - has_many :ballots, class_name: Poll::Ballot + has_many :ballots, class_name: "Poll::Ballot" validates :data, presence: true validates :poll_id, presence: true