Browse Source

nested interval gem released, tree rebuild

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
63f5069f5e
  1. 3
      Gemfile
  2. 7
      db/migrate/20120302172252_add_nested_interval_to_domains.rb

3
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

7
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

Loading…
Cancel
Save