buttercms 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdaf25f92202f5af0f2abe882d1d57e6dce8afaa
4
- data.tar.gz: 68cc14b6e2510c9a3d9f2e330a0158d8c1d25050
3
+ metadata.gz: 791d5af2a7da43fc63cec4c2e9c98537b5fad58b
4
+ data.tar.gz: e06028b7a6df2e89d9273d12f5e391da4d6d9ef9
5
5
  SHA512:
6
- metadata.gz: 5e30acd6680bf3702b9f870e7e11cdb3e473b5db66e5327973ce205a34a0a192a23b06e79f3ab38a516c553aa6442cda574a45d71196977a67fc6bab9db57ce6
7
- data.tar.gz: 3d1b05d4449fb621dba58525fbbfc1daf7119e7855f81963b5b83693e90eac0ce186ce5277bf07deb322c25b323ec9bbe8661da5e3353576e2121bd60b4d0da7
6
+ metadata.gz: 28951af34e703b3f9e1c10245ae9b5f096c1b06403431efd6affacbd653f1ec78e82b79820033a5d6db6b94868f3c4dc1ccf93ce3066feed5f7f01295c43a7c1
7
+ data.tar.gz: fee0f123668d11988fcf6592bfe79e3f6b78b2409a03c6b641c291179e1033133f8a1f124777966c99fbdc4d057596fa13ce8c9351b244dd014ab21873dec6af
@@ -9,6 +9,7 @@ module Buttercms
9
9
  class BlogController < ApplicationController
10
10
  layout :get_butter_layout
11
11
  helper Rails.application.helpers
12
+ helper Buttercms::ApplicationHelper
12
13
 
13
14
  def get_butter_layout
14
15
  if defined? Buttercms.configuration
@@ -1,4 +1,8 @@
1
1
  module Buttercms
2
2
  module ApplicationHelper
3
+ # Used to map to the parent applications url_helpers from within the blog controller views.
4
+ def method_missing method, *args, &block
5
+ method.to_s.end_with?('_path', '_url') and main_app.respond_to?(method) ? main_app.send(method, *args) : super
6
+ end
3
7
  end
4
8
  end
@@ -1,3 +1,3 @@
1
1
  module Buttercms
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buttercms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ButterCms