-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #96. NLP detects partially matching values
- Loading branch information
1 parent
fcaa448
commit ffa0b80
Showing
10 changed files
with
285 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Abstractor | ||
class AbstractorSuggestionSourceRange < ActiveRecord::Base | ||
include Abstractor::Methods::Models::AbstractorSuggestionSourceRange | ||
end | ||
end |
11 changes: 11 additions & 0 deletions
11
db/migrate/20150522134853_create_abstractor_suggestion_source_ranges.rb
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class CreateAbstractorSuggestionSourceRanges < ActiveRecord::Migration | ||
def change | ||
create_table :abstractor_suggestion_source_ranges do |t| | ||
t.integer :abstractor_suggestion_source_id, null: false | ||
t.integer :begin_position | ||
t.integer :end_position | ||
|
||
t.timestamps null: false | ||
end | ||
end | ||
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
lib/abstractor/methods/models/abstractor_suggestion_source_range.rb
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Abstractor | ||
module Methods | ||
module Models | ||
module AbstractorSuggestionSourceRange | ||
def self.included(base) | ||
base.send :include, SoftDelete | ||
|
||
# Associations | ||
base.send :belongs_to, :abstractor_suggestion | ||
end | ||
end | ||
end | ||
end | ||
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
7 changes: 7 additions & 0 deletions
7
spec/models/abstractor/abstractor_suggestion_source_range_spec.rb
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
module Abstractor | ||
RSpec.describe AbstractorSuggestionSourceRange, :type => :model do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
end | ||
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
Oops, something went wrong.