Procházet zdrojové kódy

fix merging mistake

Kylie Jo Swistak před 6 roky
rodič
revize
57136cfcdc
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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 },