cells 3.8.7 → 3.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.textile +4 -0
- data/lib/cell/rails4_0_strategy.rb +39 -0
- data/lib/cells/version.rb +1 -1
- metadata +2 -1
data/CHANGES.textile
CHANGED
@@ -0,0 +1,39 @@
|
|
1
|
+
# This file contains VersionStrategies for the Cell and Cells module for Rails >= 3.1.
|
2
|
+
module Cell
|
3
|
+
# Methods to be included in Cell::Rails in 3.1 context.
|
4
|
+
module VersionStrategy
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
include AbstractController::UrlFor # must be included before _routes is set in Railstie. # TODO: remove that.
|
8
|
+
|
9
|
+
|
10
|
+
module ClassMethods
|
11
|
+
def helper_modules
|
12
|
+
[_routes.url_helpers, _routes.mounted_helpers, _helpers]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
def process_opts_for(opts, state)
|
18
|
+
opts[:action] = opts[:view] || state
|
19
|
+
|
20
|
+
lookup_context.formats = [opts.delete(:format)] if opts[:format]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
module Cells
|
27
|
+
module Engines
|
28
|
+
module VersionStrategy
|
29
|
+
def registered_engines
|
30
|
+
#::Rails::Railties.engines
|
31
|
+
[]
|
32
|
+
end
|
33
|
+
|
34
|
+
def existent_directories_for(path)
|
35
|
+
path.existent_directories
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
data/lib/cells/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cells
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- lib/cell/rails/helper_api.rb
|
169
169
|
- lib/cell/rails3_0_strategy.rb
|
170
170
|
- lib/cell/rails3_1_strategy.rb
|
171
|
+
- lib/cell/rails4_0_strategy.rb
|
171
172
|
- lib/cell/rendering.rb
|
172
173
|
- lib/cell/test_case.rb
|
173
174
|
- lib/cells.rb
|