Module: LookupBy
- Defined in:
- lib/lookup_by/association.rb,
lib/lookup_by.rb,
lib/lookup_by/cache.rb,
lib/lookup_by/lookup.rb,
lib/lookup_by/railtie.rb,
lib/lookup_by/version.rb,
lib/lookup_by/caching/lru.rb,
lib/lookup_by/hooks/cucumber.rb,
lib/lookup_by/caching/safe_lru.rb,
lib/lookup_by/hooks/formtastic.rb,
lib/lookup_by/hooks/simple_form.rb
Overview
TODO: play nicely with belongs_to TODO: has_many association
class Decision
lookup_for :reasons
end
Decision.first.reasons
> [“employment”, “income”]
Decision.new.reasons = %w(employment income)
Defined Under Namespace
Modules: Association, Caching, Hooks, Lookup Classes: Cache, Error, Railtie
Constant Summary collapse
- UUID_REGEX =
/\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\Z/- UUID_REGEX_V4 =
/\A\h{8}-\h{4}-4\h{3}-[89aAbB]\h{3}-\h{12}\Z/- VERSION =
"0.3.1"