Sha256: 609500f3f9f8b0ef15bed822ff611a7d36d7b1f071857553f89365bf935c3b7f
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
# Pousse TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'pousse' And then execute: $ bundle Or install it yourself as: $ gem install pousse ## Usage Create an initializer config/initializer/pousse.rb ``` Pousse::configure do |config| end ``` Add this line to your layout : ``` <div data-pousse="<%= Pousse::layout([:everybody]) %>"> ``` Include the javascript : ``` //require pousse ``` Create a new mailer in app/mailer/pousse.rb ``` class AlertMailer < Pousse::Mailer def send_alert mail( to: 'everybody', body: 'alert("Hello World !")' ) end end ``` ### TODO : Should add some logging when redis is not available. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pousse-0.0.2 | README.md |