Module: GritterNotices::ActiveRecord
- Defined in:
- lib/gritter_notices/active_record.rb
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- ValidMethods =
Hash[*GritterNotices::KEYS.map { |key| ["gritter_notice_#{key}", key]
Instance Method Summary collapse
-
#has_gritter_notices ⇒ Object
:level => [:success, :warning, :notice, :error, :progress].
Instance Method Details
#has_gritter_notices ⇒ Object
:level => [:success, :warning, :notice, :error, :progress]
6 7 8 9 |
# File 'lib/gritter_notices/active_record.rb', line 6 def has_gritter_notices has_many :gritter_notices, :as => :owner, :dependent => :delete_all include InstanceMethods end |