thincloud-authentication 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -62,6 +62,15 @@ The following must be true for `thincloud-authentication` to operate properly:
62
62
  The `Thincloud::Authentication` module accepts a `configure` block with options to customize the engine behavior.
63
63
 
64
64
 
65
+ ### Layouts
66
+
67
+ Set the `layout` option to customize the layout used by all thincloud-authentication views:
68
+
69
+ ```ruby
70
+ Thincloud::Authentication.configure do |config|
71
+ config.layout = "other"
72
+ end
73
+
65
74
  ### Mailers
66
75
 
67
76
  Set the `mailer_sender` option to customize the "From" address of the emails sent from the system:
@@ -1,6 +1,6 @@
1
1
  module Thincloud::Authentication
2
2
  # Public: Primary controller settings and helpers for the engine.
3
3
  class ApplicationController < ActionController::Base
4
- layout "application"
4
+ layout Thincloud::Authentication.configuration.layout
5
5
  end
6
6
  end
@@ -11,9 +11,10 @@ module Thincloud
11
11
 
12
12
  # Public: Configuration options for the Thincloud::Authentication module
13
13
  class Configuration
14
- attr_accessor :providers, :mailer_sender
14
+ attr_accessor :layout, :providers, :mailer_sender
15
15
 
16
16
  def initialize
17
+ @layout = "application"
17
18
  @providers = {}
18
19
  @mailer_sender = "app@example.com"
19
20
  end
@@ -1,5 +1,5 @@
1
1
  module Thincloud
2
2
  module Authentication
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thincloud-authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -268,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  segments:
270
270
  - 0
271
- hash: 2398452260394112497
271
+ hash: 3656149340938148571
272
272
  required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  none: false
274
274
  requirements:
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
277
  version: '0'
278
278
  segments:
279
279
  - 0
280
- hash: 2398452260394112497
280
+ hash: 3656149340938148571
281
281
  requirements: []
282
282
  rubyforge_project:
283
283
  rubygems_version: 1.8.24