Skip to content

Instantly share code, notes, and snippets.

@ritikesh
Last active June 18, 2020 06:31
Show Gist options
  • Save ritikesh/7ce56aa64c5a1d2c7e7a43220d16c8cd to your computer and use it in GitHub Desktop.
Save ritikesh/7ce56aa64c5a1d2c7e7a43220d16c8cd to your computer and use it in GitHub Desktop.
blog gists
class Tenant < ActiveRecord::Base
...
# associations
has_one :tenant_configs
delegate :locale, :timezone, :date_format, ..., to: :tenant_configs
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment