Module: Alerter
- Defined in:
- lib/rails-alerter.rb,
lib/alerter/engine.rb,
lib/alerter/cleaner.rb,
lib/alerter/version.rb,
lib/alerter/models/notifiable.rb,
lib/alerter/message_dispatcher.rb,
lib/generators/alerter/views_generator.rb,
lib/generators/alerter/install_generator.rb,
lib/generators/alerter/namespacing_compatibility_generator.rb
Defined Under Namespace
Modules: Models Classes: BaseBuilder, BaseMailer, Cleaner, Engine, InstallGenerator, Mailbox, Message, MessageBuilder, MessageDispatcher, MessageMailer, MethodNotImplemented, NamespacingCompatibilityGenerator, NotificationType, Preference, Receipt, ReceiptBuilder, ViewsGenerator
Constant Summary collapse
- VERSION =
"0.0.5"
- @@default_from =
"Alerter: you have a new message!"
- @@name_method =
:name
- @@email_method =
:email
- @@short_msg_length =
144
- @@long_msg_length =
512
- @@mailer_wants_array =
false
- @@available_notification_types =
%w( info warning error action )
- @@available_notification_methods =
%w( none email ios_push android_push sms twitter )
- @@notification_method =
%w( none )
- @@root_url =
Base url to use in messages
'www.alerter.com'
Class Method Summary collapse
Class Method Details
.protected_attributes? ⇒ Boolean
61 62 63 |
# File 'lib/rails-alerter.rb', line 61 def protected_attributes? Rails.version < '4' || defined?(ProtectedAttributes) end |
.setup {|_self| ... } ⇒ Object
57 58 59 |
# File 'lib/rails-alerter.rb', line 57 def setup yield self end |