Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo < FooParent
- def bar
- # does stuff
- auth_profile = authentication.profile # <--- is this bad style?
- puts auth_profile
- end
- end
- class FooParent
- attr_reader :authentication
- def initialize(authentication)
- @authentication = authentication
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement