Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Half-done parent column option work. I decided it was too much effort…
… for now, but may return to it later.
- Loading branch information
1 parent
0a9333f
commit fbe9b72
Showing
4 changed files
with
60 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
require File.dirname(__FILE__) + '/spec_helper' | |||
require File.dirname(__FILE__) + '/nested_set_behavior' | |||
|
|||
class CustomNamedDirectory < ActiveRecord::Base | |||
acts_as_nested_set :parent_column => :baz_id | |||
|
|||
validates_presence_of :name | |||
end | |||
|
|||
describe CustomNamedDirectory do | |||
include AttributeHelper | |||
|
|||
before do | |||
@model = CustomNamedDirectory | |||
end | |||
|
|||
it_should_behave_like "all nested set models" | |||
|
|||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters