Skip to content

Conversation

@pnomolos
Copy link

@pnomolos pnomolos commented Jun 30, 2021

If you had a dragonfly accessor such as photo (with the associated photo_uid column)
but did not have a photo_size column, the defining a method such as thumbnail_photo_size
would include :size in the magic_attributes accessor for that model - even though one didn't
actually exist.

Ex:

class User
  dragonfly_accessor :photo

  def thumbnail_photo_size
    # The inclusion of this method causes Dragonfly to think this class has a photo_size column
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant