workflow_kit 0.0.2.alpha → 0.0.3.alpha

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workflow_kit (0.0.2.alpha)
4
+ workflow_kit (0.0.3.alpha)
5
5
  rails (~> 3.2.6)
6
6
 
7
7
  GEM
@@ -1,5 +1,26 @@
1
1
  module WorkflowKit
2
- class ApplicationController < ActionController::Base
3
- layout 'application'
2
+
3
+ class ApplicationController < ::ApplicationController
4
+
5
+ #
6
+ # What is this controller inheritance doing?
7
+ # This makes the class WorkflowKit::ApplicationController inherit from the main
8
+ # application's ApplicationController.
9
+ # Therefore, all helper methods of the main app will be available in the engine.
10
+ # That is necessary if you want to use the main app's layout, because this
11
+ # layout will most likely use some helper methods.
12
+ #
13
+ # To restore the isolation from the main app's ApplicationController,
14
+ # one could use the inheritance originally used by the `rails g plugin --mountable`,
15
+ # which is:
16
+ #
17
+ # class ApplicationController < ActionController::Base
18
+ #
19
+ # For further information, I recommend having a look at this extremely
20
+ # helpful article:
21
+ #
22
+ # http://bibwild.wordpress.com/2012/05/10/the-semi-isolated-rails-engine/
23
+ #
24
+
4
25
  end
5
26
  end
@@ -1,3 +1,3 @@
1
1
  module WorkflowKit
2
- VERSION = "0.0.2.alpha"
2
+ VERSION = "0.0.3.alpha"
3
3
  end
@@ -1,2 +1,7 @@
1
1
  module ApplicationHelper
2
+
3
+ def helpers_of_the_main_app_can_be_called?
4
+ true
5
+ end
6
+
2
7
  end
@@ -12,6 +12,7 @@
12
12
  <% flash.each do |name, msg| %>
13
13
  <%= content_tag :div, msg, :id => "flash_#{name}" %>
14
14
  <% end %>
15
+ <% helpers_of_the_main_app_can_be_called? %>
15
16
  <%= yield %>
16
17
  </div>
17
18
  </body>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.alpha
4
+ version: 0.0.3.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -288,7 +288,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
288
  version: '0'
289
289
  segments:
290
290
  - 0
291
- hash: -1050207759
291
+ hash: -378082417
292
292
  required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  none: false
294
294
  requirements: