Ver Fonte

fix merging mistake

Kylie Jo Swistak há 6 anos atrás
pai
commit
57136cfcdc
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      app/models/char_images.rb

+ 3 - 3
app/models/char_images.rb

@@ -24,9 +24,9 @@ class CharImage < ActiveRecord::Base
     hash
   end
 
-  def self.to_form(name, species, id, keyword, category, url, user_id)
+  def self.to_form(char:, keyword:, category:, url:, user_id:)
     Embed.new(
-      title: "#{name} | #{species}",
+      title: "#{char.name} | #{char.species}",
       description: "<@#{user_id}>",
       author: {
         name: "Image Application",
@@ -36,7 +36,7 @@ class CharImage < ActiveRecord::Base
         url: url
       },
       footer: {
-        text: id
+        text: char.id
       },
       fields: [
         { name: 'Keyword', value: keyword, inline: true },