rostra 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  module Rostra
2
2
  class ApplicationMailer < ActionMailer::Base
3
+ layout Rostra::Config.email_layout
3
4
 
4
5
  def notification(user, question)
5
6
  @user = user
@@ -1,5 +1,9 @@
1
1
  # Use this setup block to configure all options available in Rostra.
2
2
  Rostra::Config.setup do |config|
3
+
4
+ # Helper method used to access current user in the view
5
+ # config.email_layout = nil
6
+
3
7
  # Helper method used to access current user in the view
4
8
  # config.deliver_emails_from = 'change_me@example.com'
5
9
 
data/lib/rostra/config.rb CHANGED
@@ -1,6 +1,11 @@
1
1
  module Rostra
2
2
  module Config
3
3
 
4
+ # Helper method used to access current user in the view
5
+ #
6
+ mattr_accessor :email_layout
7
+ @@email_layout = nil
8
+
4
9
  # Helper method used to access current user in the view
5
10
  #
6
11
  mattr_accessor :deliver_emails_from
@@ -1,3 +1,3 @@
1
1
  module Rostra
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rostra
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.7
5
+ version: 0.1.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Cory Schires