diff --git a/Gemfile b/Gemfile index 4ab631e..8d18595 100644 --- a/Gemfile +++ b/Gemfile @@ -26,7 +26,8 @@ gem 'simple_form', '~> 2.0.0' gem 'concerned_with', '~> 0.1.0' gem 'navigasmic', '~> 0.5.6', git: 'https://github.com/jejacks0n/navigasmic.git' gem 'rails-backbone', '~> 0.7.0' -gem 'acts_as_nested_interval', '~> 0.0.1', path: '/home/clyfe/dev/acts_as_nested_interval' +gem 'acts_as_nested_interval', '~> 0.0.1' +# path: '/home/clyfe/dev/acts_as_nested_interval' # git: 'https://github.com/clyfe/acts_as_nested_interval.git' # Gems used only for assets and not required diff --git a/db/migrate/20120302172252_add_nested_interval_to_domains.rb b/db/migrate/20120302172252_add_nested_interval_to_domains.rb index 336f3f6..3d11bc9 100644 --- a/db/migrate/20120302172252_add_nested_interval_to_domains.rb +++ b/db/migrate/20120302172252_add_nested_interval_to_domains.rb @@ -18,13 +18,8 @@ class AddNestedIntervalToDomains < ActiveRecord::Migration reset_column_information self.inheritance_column = "sti_disabled" acts_as_nested_interval virtual_root: true - skip_callback :update, :before, :update_nested_interval - skip_callback :update, :before, :sync_children - end - Domain.scoped.each do |d| - d.create_nested_interval - d.save! end + Domain.rebuild_nested_interval_tree! end end