Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created January 21, 2010 15:24
Show Gist options
  • Save knowuh/282872 to your computer and use it in GitHub Desktop.
Save knowuh/282872 to your computer and use it in GitHub Desktop.
./default_investigation.rb: page_embeddable = nil
./default_investigation.rb: page_embeddable = Xhtml.create do |x|
./default_investigation.rb: page_embeddable.pages << p
./default_investigation.rb: [page, page_embeddable]
./default_investigation.rb: page_embeddable = MwModelerPage.create do |mw|
./default_investigation.rb: page_embeddable.pages << page
./default_investigation.rb: page_embeddable = NLogoModel.create do |mw|
./default_investigation.rb: page_embeddable.pages << page
./default_investigation.rb: page_embeddable = OpenResponse.create do |o|
./default_investigation.rb: page_embeddable.pages << page
./default_investigation.rb: page_embeddable = DrawingTool.create do |dt|
./default_investigation.rb: page_embeddable.pages << page
./default_investigation.rb: page_embeddable = DataCollector.create do |d|
./default_investigation.rb: @@prediction_graph = page_embeddable
./default_investigation.rb: page_embeddable.pages << page
./default_investigation.rb: page_embeddable = DataCollector.create do |d|
./default_investigation.rb: page_embeddable.pages << page
./default_investigation.rb: page_embeddable = Xhtml.create do |x|
./default_investigation.rb: page_embeddable.pages << page
./generators/element/templates/index.html.haml: = render :partial => 'shared/embeddable_container', :locals=> {:component => <%= singular_name %>}
./generators/element/templates/model.rb: has_many :page_elements, :as => :embeddable
./itsi_importer.rb: embeddable = Xhtml.create do |x|
./itsi_importer.rb: embeddable.pages << page
./itsi_importer.rb: page_embeddable = nil
./itsi_importer.rb: page_embeddable = Xhtml.create do |x|
./itsi_importer.rb: page_embeddable.pages << p
./itsi_importer.rb: [page, page_embeddable]
./itsi_importer.rb: page_embeddable = MwModelerPage.create do |mw|
./itsi_importer.rb: page_embeddable.pages << page
./itsi_importer.rb: page_embeddable = NLogoModel.create do |mw|
./itsi_importer.rb: page_embeddable.pages << page
./itsi_importer.rb: page_embeddable = OpenResponse.create do |o|
./itsi_importer.rb: page_embeddable.pages << page
./itsi_importer.rb: page_embeddable = DrawingTool.create do |dt|
./itsi_importer.rb: page_embeddable.pages << page
./itsi_importer.rb: page_embeddable = DataCollector.create do |d|
./itsi_importer.rb: @@prediction_graph = page_embeddable
./itsi_importer.rb: page_embeddable.pages << page
./itsi_importer.rb: page_embeddable = DataCollector.create do |d|
./itsi_importer.rb: page_embeddable.pages << page
./itsi_importer.rb: page_embeddable = Xhtml.create do |x|
./itsi_importer.rb: page_embeddable.pages << page
./model_reflection.rb: def embeddable_models
./tasks/fixups.rake: innerPageElements = PageElement.all.select { |pe| pe.embeddable_type == "InnerPage" }
./tasks/fixups.rake: innerPages = innerPageElements.map { |pe| pe.embeddable }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment