Re: [Rails-core] Re: [ActiveStorage] Feature Request: attachment validations

2019-02-21 Thread Abhishek Chandrasekhar
Hey everyone! It seems this has been open for a while, and as per George's last statement I'm assuming a pull request is still welcome? If so I've been working on this the past few days  (As a small side note, there does already seem to be a PR open but I provided my thoughts on that here.

[Rails-core] [ActiveRecord] Feature Proposal: Provide proper association names in Polymorphic associations

2019-02-21 Thread Abhinav Mishra
Current implementation of polymorphic association: class Picture < ApplicationRecord belongs_to :imageable, polymorphic: true end class Employee < ApplicationRecord has_many :pictures, as: :imageable end class Product < ApplicationRecord has_many :pictures, as: :imageable end This