Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Feature: custom methods on associations. #423

Open
kyku opened this issue Jun 1, 2021 · 0 comments
Open

Feature: custom methods on associations. #423

kyku opened this issue Jun 1, 2021 · 0 comments

Comments

@kyku
Copy link

kyku commented Jun 1, 2021

Given the following code:

class Author < ApplicationRecord
   # ...
   has_many :posts do
        extend T::Sig
        sig { returns(Integer) } 
        def custom_method
          42
        end
   end
end

Could it be possible to export custom_method to generated RBI?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant