【文件属性】:
文件名称:flyer-rb:以编程方式在 Rails 中显示用户通知
文件大小:33KB
文件格式:ZIP
更新时间:2021-06-26 00:58:17
Ruby
传单
以编程方式在 Rails 中显示用户通知。
安装
gem install flyer
用法
# config/initializers/flyer.rb
# Use one init block for each notification
Flyer :: Notification . init do | config |
# Unique id. Used to uniquely identify a notification.
config . id = "new-user"
# Message to be passed to view. Is evaluated in the view context.
config . message { "Your nickname is #{ current_user . nickname } " + icon ( "
【文件预览】:
flyer-rb-master
----MIT-LICENSE(1KB)
----lib()
--------flyer()
--------flyer.rb(211B)
----Gemfile(560B)
----spec()
--------spec_helper.rb(353B)
--------dummy()
--------flyer_spec.rb(5KB)
----Rakefile(573B)
----README.md(1KB)
----flyer.gemspec(831B)
----.rspec(30B)
----.gitignore(152B)