This file contains hidden or 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
| class CreateSurveys < ActiveRecord::Migration | |
| def change | |
| create_table :surveys do |t| | |
| t.integer :author_id, null: false | |
| t.text :customer_name, null: false | |
| t.string :phone, null: true | |
| t.text :address, null: true | |
| t.string :zipcode, null: true | |
| t.string :city, null: true | |
| t.string :state, null: true, limit: 2 |
This file contains hidden or 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
| <h4> | |
| <span style="font-size: 12pt;">Vincent DeFilippi</span> | |
| </h4> | |
| <p> | |
| <span style="font-size: 10pt;">Our Top Doc is making a house call. In this Ask the Experts video, Dr. DeFilippi talks about valvular heart disease and your options for treatment.</span> | |
| </p> | |
| <object width="486" height="412" data="http://c.brightcove.com/services/viewer/federated_f9?isVid=1" type="application/x-shockwave-flash"> | |
| <param name="flashVars" value="@videoPlayer=3292208712001&playerID=50773277001&playerKey=AQ~~,AAAAC8PYRbk~,wKFKP7e2mxJPeHP2yvs2r7vzrxw2PYzh&domain=embed&dynamicStreaming=true" /> |
This file contains hidden or 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
| <script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script> |
This file contains hidden or 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
| class Factories::CheckIn | |
| def initialize(options = {}) | |
| @options = options || {} | |
| end | |
| def create(attributes) | |
| build(nil, attributes).tap do |check_in| | |
| validate_user_schedule_existance(check_in) | |
| validate_check_in_date(check_in) if @options[:fastpass] |
This file contains hidden or 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 validate_check_in_date(entity) | |
| if entity.user_schedule && day = entity.user_schedule.try(:department_block).try(:day) | |
| entity.errors.add(:created_at, :not_assigned) if day.to_date != Time.zone.now.to_date | |
| end | |
| end | |
| // |
NewerOlder