Module: StatusAssignable::ActiveRecord
- Defined in:
- lib/status_assignable/active_record.rb
Overview
Integration with ActiveRecord so that the model can simply call has_assignable_status.
Instance Method Summary collapse
-
#has_assignable_status(custom_statuses = nil) ⇒ Object
rubocop:disable Naming/PredicateName.
Instance Method Details
#has_assignable_status(custom_statuses = nil) ⇒ Object
rubocop:disable Naming/PredicateName
6 7 8 9 10 11 12 |
# File 'lib/status_assignable/active_record.rb', line 6 def has_assignable_status(custom_statuses = nil) # rubocop:disable Naming/PredicateName if custom_statuses.nil? include StatusAssignable else include StatusAssignable[custom_statuses] end end |