class LogLocation < ActiveRecord::Base
  self.table_name = "logs_locations"

  belongs_to :log
  belongs_to :location, polymorphic: true
end


class LogLocation < ActiveRecord::Base
  self.table_name = "logs_locations"

  belongs_to :log
  belongs_to :location, polymorphic: true

  accepts_nested_attributes_for :location
end


Add nested attributes for location in log location
Add nested attributes for location in log location
