beyond_canvas 0.8.0.pre → 0.8.1.pre

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: 2acef59a9ae541489e52ccf230292331c5b6f57ec6a60f33fe2dd855d2878726
4
- data.tar.gz: 7fa922eb178452ae2a009324e8430d8048db63a80b38ab69037efd4a991f184e
3
+ metadata.gz: 2b4a9611b4fb459d4454a166f9984e56403afd19d40b872e873481a57b58026d
4
+ data.tar.gz: adc77192a838146243ccfb8572f33b01f0e5d4d27950ab02e4ee84c35cce83ad
5
5
  SHA512:
6
- metadata.gz: e4892640c0a1504fa9db3770513d7cc299770874d31a66e808b6c9062b12c43b4fda572ce80ca969c6829d899117251b3b5026e349af3f4569430a9968d71d90
7
- data.tar.gz: 3c1871a932673141c76d45e78687ac2031c1ad965df09e24d2b91d812fc37242e91fccf5977786c81eded84ceececf3aadc9d2f70fa957070a45a8b59e3ad2bf
6
+ metadata.gz: bd712299f19099d27f198c4d48fdd6c2ec68fbe3480aba124335816b8880c7f61d148c65f09c0eed27ef8f5fa9db3f0a442673ba6c3119ecc4a69c6569db9f33
7
+ data.tar.gz: b62e2a194d42964e6bff4f1b31fdf561803b7944252665f974f2888907026aab098bbcb6c043fc4f7c70952d3c88178c5452dc41f114ce335194d146e70dfe90
data/README.md CHANGED
@@ -37,16 +37,19 @@
37
37
  //= require beyond_canvas
38
38
  ```
39
39
 
40
+ 1. Mount the engine in your routes file:
41
+
42
+ ```ruby
43
+ mount BeyondCanvas::Engine => "/<your-mounting-path>"
44
+ ```
45
+
40
46
  1. Run the generator:
41
47
 
42
48
  ```bash
43
49
  $ rails g beyond_canvas:install
44
50
  ```
45
51
 
46
- This will generate 2 new files:
47
-
48
- 1. `config/initializers/beyond_canvas.rb`, used for general Beyond Canvas configuration and
49
- 2. `config/initializers/beyond_canvas_form_utils.rb`, needed for changing the form generation behavior
52
+ This will generate `config/initializers/beyond_canvas.rb` file, used for general Beyond Canvas configuration
50
53
 
51
54
  ## Style Customization
52
55
 
@@ -3,7 +3,7 @@
3
3
  module BeyondCanvas
4
4
  class ApplicationController < ActionController::Base
5
5
  protect_from_forgery with: :exception
6
- before_action :set_locale
6
+ before_action :set_locale, except: :update_locale
7
7
 
8
8
  ############################################################################
9
9
  # Locale management
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BeyondCanvas
4
- VERSION = '0.8.0.pre'
4
+ VERSION = '0.8.1.pre'
5
5
  end
data/lib/beyond_canvas.rb CHANGED
@@ -7,6 +7,7 @@ require 'colorize'
7
7
  require 'bourbon'
8
8
  require 'slim-rails'
9
9
  require 'inline_svg'
10
+ require 'http/accept'
10
11
 
11
12
  module BeyondCanvas
12
13
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.pre
4
+ version: 0.8.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bourbon