gleborator 0.1.1.1 → 0.1.1.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
  SHA1:
3
- metadata.gz: 5d6da3aa479a5fa50d60cba733f507c72b95ba46
4
- data.tar.gz: 960725e2ce2df71690b5273cc3cb1a5dae35b32e
3
+ metadata.gz: cc282fef351346cd79ae182952dbb00375c96204
4
+ data.tar.gz: f941be218a96c0c6dbb435276987fe649e419faa
5
5
  SHA512:
6
- metadata.gz: baadee5ac9790f27de060f8de8dbe63452d06af0ba360ce965c6faf039d24489fcf513421f220a8a77a753ac549501a8960977634975386817562c41c5c24111
7
- data.tar.gz: 6231444c772cb6b9ede16964a65942ce2ee5db007d930afc3dd108f31c7d752a4953cdf878bc2af543086efc77fdf083a03d972c165f69a642737b338a454233
6
+ metadata.gz: 65c2657fef9b111f997d8dad01e68d6ccecff1cdcfb7ddf2c874a6a6fb13005175995ae4af6df510462fc40d0df4f8c71ca337622e813de4f4ea206807ae5835
7
+ data.tar.gz: 1b82177e9dd05280fd0f96d78f69502f7eb171de967efc434b8dd300e699d0b963104e681e7e4a07c520273105245260752c9b826d67f3721bfec2f460c575a6
@@ -3,7 +3,7 @@ require 'rails/railtie'
3
3
  module Gleborator
4
4
  class Railtie < Rails::Railtie
5
5
 
6
- initializer "draper.active_record" do |app|
6
+ initializer "gleborator.active_record" do |app|
7
7
  ActiveSupport.on_load :active_record do
8
8
  Gleborator.setup self
9
9
  end
@@ -1,5 +1,7 @@
1
1
  module Gleborator
2
2
  module Setup
3
+ extend ActiveSupport::Concern
4
+
3
5
  def decorate
4
6
  begin
5
7
  decorator_class = "#{self.class.name}Decorator".constantize
@@ -8,5 +10,11 @@ module Gleborator
8
10
  raise "Couldn't find decorator #{self.class.name}Decorator"
9
11
  end
10
12
  end
13
+
14
+ module ClassMethods
15
+ def decorate
16
+ raise 'asdfasdfadsf'
17
+ end
18
+ end
11
19
  end
12
20
  end
@@ -1,3 +1,3 @@
1
1
  module Gleborator
2
- VERSION = "0.1.1.1"
2
+ VERSION = "0.1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gleborator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.1
4
+ version: 0.1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Vishnevsky