Created
January 26, 2013 01:27
-
-
Save seejee/4639478 to your computer and use it in GitHub Desktop.
No shard spanning
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
def create_demo_pathway(lesson_id) | |
grade_level = GradeLevel.first.id | |
state = State.find_by_code!('PA') | |
lesson = Lesson.find(lesson_id) | |
pathway = Pathway.create!( | |
name: 'Demo Pathway', | |
grade_level_id: grade_level, | |
state: state, | |
demo: true, | |
use_placement_test: false, | |
use_remediation: false, | |
allow_test_out: false, | |
creator: self | |
) | |
pathway_lesson = PathwayLesson.create!( | |
lesson: lesson, | |
pathway: pathway, | |
position: 1 | |
) | |
pathway | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment