summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-10-10 11:03:54 -0700
committerjessib <jessib@riseup.net>2013-10-10 11:03:54 -0700
commit634db9875cc8f6f6b9a4a83dfc6b8d53728eb2b5 (patch)
treea2e76370ad530210be3a3ff67567d22003eae365
parent014ff5bda0802d51b4cbca5a2fd904d953223d2f (diff)
parent0acbf6a158f149c1f4273bde0cfca47547e080f8 (diff)
Merge branch 'develop' into feature/billing-no-authenticated-payments
-rw-r--r--core/leap_web_core.gemspec2
-rw-r--r--core/lib/extensions/couchrest.rb36
-rw-r--r--lib/leap_web/version.rb2
3 files changed, 21 insertions, 19 deletions
diff --git a/core/leap_web_core.gemspec b/core/leap_web_core.gemspec
index f391f00..e98c892 100644
--- a/core/leap_web_core.gemspec
+++ b/core/leap_web_core.gemspec
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency "rails", "~> 3.2.11"
s.add_dependency "couchrest", "~> 1.1.3"
- s.add_dependency "couchrest_model", "~> 2.0.0.beta2"
+ s.add_dependency "couchrest_model", "~> 2.0.0"
s.add_dependency "couchrest_session_store", "~> 0.2.0"
s.add_dependency "json"
diff --git a/core/lib/extensions/couchrest.rb b/core/lib/extensions/couchrest.rb
index 176184f..91dfc1c 100644
--- a/core/lib/extensions/couchrest.rb
+++ b/core/lib/extensions/couchrest.rb
@@ -42,30 +42,32 @@ module CouchRest
end
- class Migrate
- def self.load_all_models_with_engines
- self.load_all_models_without_engines
- return unless defined?(Rails)
- Dir[Rails.root + 'app/models/**/*.rb'].each do |path|
- require path
+ module Utils
+ module Migrate
+ def self.load_all_models_with_engines
+ self.load_all_models_without_engines
+ return unless defined?(Rails)
+ Dir[Rails.root + 'app/models/**/*.rb'].each do |path|
+ require path
+ end
+ Dir[Rails.root + '*/app/models/**/*.rb'].each do |path|
+ require path
+ end
end
- Dir[Rails.root + '*/app/models/**/*.rb'].each do |path|
- require path
+
+ def self.all_models_and_proxies
+ callbacks = migrate_each_model(find_models)
+ callbacks += migrate_each_proxying_model(find_proxying_models)
+ cleanup(callbacks)
end
- end
- def self.all_models_and_proxies
- callbacks = migrate_each_model(find_models)
- callbacks += migrate_each_proxying_model(find_proxying_models)
- cleanup(callbacks)
- end
+ class << self
+ alias_method_chain :load_all_models, :engines
+ end
- class << self
- alias_method_chain :load_all_models, :engines
end
-
end
end
diff --git a/lib/leap_web/version.rb b/lib/leap_web/version.rb
index e582308..a55c2ca 100644
--- a/lib/leap_web/version.rb
+++ b/lib/leap_web/version.rb
@@ -1,3 +1,3 @@
module LeapWeb
- VERSION = "0.2.2" unless defined?(LeapWeb::VERSION)
+ VERSION = "0.2.4" unless defined?(LeapWeb::VERSION)
end