Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Lazy loading of adapter #9

Open
jnunemaker opened this Issue · 0 comments

1 participant

John Nunemaker
John Nunemaker
Owner

Right now you need an instance that is all setup and ready to go to pass to the adapter method. I'm thinking we should allow a block which will get yielded and memoized on first call. This will allow for lazy loading of things.

class User
  include Toy::Store
  adapter { some_adapter_instance }
end
John Nunemaker jnunemaker was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.