trestle-mobility 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38b5e9515b6921bf88ebeea176f454ee979ba77a391c017c8753cc24c641b85e
4
- data.tar.gz: a236266d7fee5b10dde7751ac5e5967f9baf110937f88b8576dda6eb7269799e
3
+ metadata.gz: b05239931214566a6ce7e2cbac8b7bb2d4b46a60e65083fd506fd9b93ff0fd0d
4
+ data.tar.gz: 9851a708fc474bb2fa098066531c6e6ef581d92fd32132e65574e24d890b0e0d
5
5
  SHA512:
6
- metadata.gz: 5eb1b9c12f9c720c7aecf0de63fdce7884e911c0cf8243539ceded44eaee14b7e96ab25d21c5776bb68f5e65f418febf06cae1cb9bca8dd1d27553280bbbda2d
7
- data.tar.gz: e6518b00e7c35239998fbaea2ea9d17cad72260020040fd8c5ba323d37f992dbc0c0e082fa49cf9bdb797765cb23ea08266bcb58b5920380a0f1e0fb9ef8fbb9
6
+ metadata.gz: 1f5e49982d087161b97a19e5f1502c3f6f48b9bf9ce9a73bd51af7632599ffa4f1d81092ab23f0b7f45c46dbc927784c99596a17e9113b09ced12707c40adf66
7
+ data.tar.gz: 3533c5cfd6ece4fc6c0099bddd52a6c72e53a27d0f5aceb99d2e922459cbaf7f618091f573ec0a734702c937e47ccf035e2034e0589f846df0e7eed95ea23051
data/README.md CHANGED
@@ -20,7 +20,7 @@ Assuming you've setup your models with Mobility's `translates` directives, you c
20
20
 
21
21
  ```ruby
22
22
  Trestle.resource(:posts) do
23
- form do |user|
23
+ form do |post|
24
24
  mobility_text_field :title
25
25
  mobility_text_field :subtitle
26
26
  mobility_text_area :content
@@ -1,6 +1,6 @@
1
- Trestle.ready(function() {
1
+ Trestle.init(function(e, root) {
2
2
  function init() {
3
- $('.mobility').each(function() {
3
+ $(root).find('.mobility').each(function() {
4
4
  new Mobility(this);
5
5
  })
6
6
  }
@@ -2,7 +2,6 @@ module Trestle
2
2
  module Mobility
3
3
  class TextArea < Trestle::Form::Field
4
4
  def field
5
- instance = builder.object
6
5
  locales = options[:locales] || I18n.available_locales.sort
7
6
  selected = options[:selected] || Trestle.config.mobility.selected || locales.first
8
7
  rows = options[:rows] || 5
@@ -2,7 +2,6 @@ module Trestle
2
2
  module Mobility
3
3
  class TextField < Trestle::Form::Field
4
4
  def field
5
- instance = builder.object
6
5
  locales = options[:locales] || I18n.available_locales.sort
7
6
  selected = options[:selected] || Trestle.config.mobility.selected || locales.first
8
7
 
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module Mobility
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Venneman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-18 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: emoji_flag