cells-rails 0.0.3 → 0.0.4
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.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/README.md +4 -4
- data/lib/cell/translation.rb +2 -3
- data/lib/cells/rails.rb +1 -0
- data/lib/cells/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06755909950f09305a6b61a0760fe0c9e6730a92
|
4
|
+
data.tar.gz: 484680613d96857e23ef830b0e61d3d44ef98c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8abbf54dd2ddca4492c6fe2a494ca0f6516006d929b1f742441b691b7b06ad1d0037b4cf52fe4f55d7cf1f3eafd64e1ad90f6402cca91f254b9b836f7eb7d0
|
7
|
+
data.tar.gz: 1909070534736ebc2ffaf378fa6054d09c16fc71b4521a0d8252632f516cc777b3e574907ed65a35ea89b7b34723431f42ed1df40519f49db168ae9d277cceec
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -4,16 +4,16 @@
|
|
4
4
|
|
5
5
|
## Rails Features
|
6
6
|
|
7
|
-
*
|
8
|
-
* controller
|
9
|
-
*
|
7
|
+
* All asset-related helpers are now simply delegated to the global asset helper instance. This happens by automatically including `Cell::Helper::AssetHelper` into `ViewModel`.
|
8
|
+
* The global controller is passed to all cells via the context object. It's available via `ViewModel#controller`.
|
9
|
+
* `ViewModel#call` and `Collection#call` are automatically `html_safe`ed.
|
10
10
|
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
14
14
|
Note that `cells-rails` is designed to work with Cells >= 4.1.
|
15
15
|
|
16
|
-
Add this line to your application's Gemfile:
|
16
|
+
Add this line to your application's Gemfile and keep it real:
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
gem 'cells-rails'
|
data/lib/cell/translation.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# NOTE: this will soon be moved to cells-rails.
|
2
1
|
module Cell::Translation
|
3
2
|
def self.included(includer)
|
4
3
|
super
|
@@ -14,6 +13,6 @@ private
|
|
14
13
|
# If you override this to change this path, please report it on the trailblazer/chat gitter channel,
|
15
14
|
# so we can find out best practices.
|
16
15
|
def translation_path
|
17
|
-
self.class.translation_path or controller_path.gsub("/", ".")
|
16
|
+
self.class.translation_path or self.class.controller_path.gsub("/", ".")
|
18
17
|
end
|
19
|
-
end
|
18
|
+
end
|
data/lib/cells/rails.rb
CHANGED
data/lib/cells/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cells-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cells
|