oare 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,10 @@ module Oare
4
4
  @associations ||= []
5
5
  class_name = options[:class_name] || association_id.to_s.singularize.camelize
6
6
  @associations << class_name.constantize
7
+ define_method(association_id) do |*args|
8
+ resource = find_or_create_resource_for_collection(class_name)
9
+ resource.reload
10
+ end
7
11
  end
8
12
 
9
13
  def connection(refresh = true)
data/oare.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  ## Basic Information
6
6
  #
7
7
  s.name = 'oare'
8
- s.version = '0.1.1'
8
+ s.version = '0.1.2'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.required_ruby_version = '~> 1.9'
11
11
  s.required_rubygems_version = '>= 1.3.6'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: oare
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nelvin Driz