yoomee-decent_exposure 1.0.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module DecentExposure
2
2
 
3
- module InstanceMethods
3
+ module ControllerInstanceMethods
4
4
 
5
5
  def over_expose(name, val)
6
6
  @_resources = {}
@@ -1,7 +1,9 @@
1
+ require File.dirname(__FILE__) + '/controller_instance_methods'
1
2
  module DecentExposure
2
3
  module DefaultExposure
3
4
  def self.included(klass)
4
5
  klass.extend(DecentExposure)
6
+ klass.send(:include, DecentExposure::ControllerInstanceMethods)
5
7
  if klass.respond_to?(:class_attribute)
6
8
  klass.class_attribute(:_default_exposure)
7
9
  else
@@ -1,3 +1,3 @@
1
1
  module DecentExposure #:nodoc
2
- VERSION = "1.0.2"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -1,12 +1,10 @@
1
1
  require 'decent_exposure/railtie'
2
- require 'decent_exposure/instance_methods'
3
2
  module DecentExposure
4
3
  def inherited(klass)
5
4
  closured_exposure = default_exposure
6
5
  klass.class_eval do
7
6
  default_exposure(&closured_exposure)
8
7
  end
9
- klass.send(:include, InstanceMethods)
10
8
  super
11
9
  end
12
10
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: yoomee-decent_exposure
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.2
5
+ version: 1.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stephen Caudill
@@ -78,8 +78,8 @@ extensions: []
78
78
  extra_rdoc_files: []
79
79
 
80
80
  files:
81
+ - lib/decent_exposure/controller_instance_methods.rb
81
82
  - lib/decent_exposure/default_exposure.rb
82
- - lib/decent_exposure/instance_methods.rb
83
83
  - lib/decent_exposure/railtie.rb
84
84
  - lib/decent_exposure/version.rb
85
85
  - lib/decent_exposure.rb