admin_data 1.0.6 → 1.0.7

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.
@@ -9,10 +9,9 @@ module AdminData
9
9
  class Engine < Rails::Engine
10
10
 
11
11
  initializer "admin_data.setup" do
12
- #AdminData::Config.initialize_defaults
13
- ActionView::Base.send :include, AdminData::Helpers
12
+ AdminData::Config.set = { :adapter_name => ActiveRecord::Base.connection.adapter_name }
14
13
  end
15
-
14
+
16
15
  rake_tasks do
17
16
  #
18
17
  end
@@ -5,6 +5,7 @@ class AdminData::Config
5
5
  def self.set=(input = {})
6
6
  valid_keys =
7
7
  %w(
8
+ adapter_name
8
9
  find_conditions
9
10
  plugin_dir
10
11
  will_paginate_per_page
@@ -61,10 +62,7 @@ class AdminData::Config
61
62
 
62
63
  :ignore_column_limit => false,
63
64
 
64
- :columns_order => nil,
65
-
66
- #TODO fix below
67
- :adapter_name => "SQLite" # ActiveRecord::Base.connection.adapter_name
65
+ :columns_order => nil
68
66
 
69
67
  }
70
68
  end
@@ -1,3 +1,3 @@
1
1
  module AdminData
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
data/lib/admin_data.rb CHANGED
@@ -15,9 +15,6 @@ end
15
15
 
16
16
  module AdminData
17
17
  end
18
- require 'admin_data/settings'
19
- AdminData::Config.initialize_defaults
20
-
21
18
 
22
19
  if Rails.version >= '3.0'
23
20
  require 'admin_data/railtie'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 6
9
- version: 1.0.6
8
+ - 7
9
+ version: 1.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Neeraj Singh
@@ -134,7 +134,6 @@ files:
134
134
  - app/views/admin_data/shared/_secondary_navigation.html.erb
135
135
  - app/views/layouts/admin_data.html.erb
136
136
  - config/routes.rb
137
- - init.rb
138
137
  - lib/admin_data.rb
139
138
  - lib/admin_data/chelper.rb
140
139
  - lib/admin_data/compatibility.rb
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'admin_data'