aa_associations 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source "http://rubygems.org"
2
2
 
3
3
  gem 'meta_search', '>= 1.1.0.pre'
4
4
  gem 'kaminari'
5
- gem 'formtastic', '~> 2.0.2' # Until activeadmin updates for formatastic 2.1+
5
+ gem 'formtastic', '~> 2.1' # Until activeadmin updates for formatastic 2.1+
6
6
  gem 'sass-rails', '~> 3.2.3'
7
7
  gem 'factory_girl_rails', '~> 1.7'
8
8
  gem 'launchy'
data/Rakefile CHANGED
@@ -5,10 +5,13 @@ rescue LoadError
5
5
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
6
  end
7
7
 
8
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
9
+ load 'rails/tasks/engine.rake'
10
+
8
11
  Bundler::GemHelper.install_tasks
9
12
 
10
13
  require 'rake/testtask'
11
- Rake::TestTask.new(:test) do |test|
14
+ Rake::TestTask.new(:test => 'app:db:test:prepare') do |test|
12
15
  test.libs << 'lib' << 'test'
13
16
  test.pattern = 'test/**/*_test.rb'
14
17
  test.verbose = true
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
  s.extra_rdoc_files = ["README.md", "MIT_LICENSE.txt"]
20
20
 
21
- s.add_dependency 'activeadmin', '~> 0.4'
21
+ s.add_dependency 'activeadmin', '~> 0.5'
22
22
  s.add_dependency 'rails', '~> 3.1'
23
23
 
24
24
  s.add_development_dependency 'shoulda'
@@ -21,7 +21,7 @@ module ActiveAdminAssociationsHelper
21
21
  if active_admin_config.active_association_form && active_admin_config.active_association_form.respond_to?(:call)
22
22
  active_admin_config.active_association_form.call(f)
23
23
  end
24
- f.buttons
24
+ f.actions
25
25
  end
26
26
  end
27
27
 
@@ -7,7 +7,11 @@ module ActiveAdmin
7
7
 
8
8
  class << self
9
9
  def resources
10
- application.namespaces.values.map{|n| n.resources.resources }.flatten.compact.map(&:resource_class)
10
+ application.namespaces.values.map{|n|
11
+ n.resources.resources
12
+ }.flatten.compact.select{|r|
13
+ r.class == ActiveAdmin::Resource
14
+ }.map(&:resource_class)
11
15
  end
12
16
  end
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminAssociations
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aa_associations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0.4'
21
+ version: '0.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  segments:
277
277
  - 0
278
- hash: -3239410897135078038
278
+ hash: 1075286965506754567
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements:
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  segments:
286
286
  - 0
287
- hash: -3239410897135078038
287
+ hash: 1075286965506754567
288
288
  requirements: []
289
289
  rubyforge_project:
290
290
  rubygems_version: 1.8.21