0

Inspection Warning: Unexpected Parameter Value

Someone else posted this issue here (http://devnet.jetbrains.com/message/5458343#5458343) but there was no response, so I am starting a new discussion.

I have a model as below:

class ConcessionGroup < ActiveRecord::Base
  attr_accessible :location_id, :name, :sequence
  belongs_to :location
  has_many :concessions, dependent: :destroy
end


The inspection tool gives me following warnings about this code:

Unexpected parameter value 'location_id'
Unexpected parameter value 'name'
Unexpected parameter value 'sequence' or hash expected

Why these warnings? How can I resolve them?    

0 comments

Please sign in to leave a comment.