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 show | |
| @post = Post.find params[:id] | |
| redirect_to @post if params[:id] != @post.to_param | |
| end |
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
| .visible-desktop { | |
| display: inherit; | |
| } | |
| .visible-tablet { | |
| display: none !important; | |
| } | |
| .visible-mobile { | |
| display: none !important; |
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
| /*global App*/ | |
| window.App = Ember.Application.create(); | |
| // Router | |
| App.Router.map(function() { | |
| this.resource('inventory', function(){ | |
| this.route('review'); | |
| this.resource('vehicle', { path: '/vehicle/:stock_no' }, function(){ |
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
| UI.DatePicker = Ember.View.extend UI.Widget, | |
| uiType: 'datepicker' | |
| uiOptions: ['disabled', 'contrainInput', 'dateFormat', 'defaultDate', 'maxDate', 'minDate', ] | |
| uiEvents: ['create', 'beforeShow', 'beforeShowDay', 'onChangeMonthYear' | |
| 'onClose', 'onSelect'] | |
| attributeBindings: ['type', 'value', 'placeholder'] | |
| type: 'text' | |
| tagName: 'input' |
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
| App.PickADate = Ember.View.extend | |
| attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort', | |
| 'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today', | |
| 'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector', | |
| 'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker'] | |
| events: ['onOpen', 'onClose', 'onSelect', 'onStart'] | |
| attributeBindings: ['type', 'value', 'placeholder'] | |
| type: 'text' | |
| tagName: 'input' |
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
| App.PickADate = Ember.View.extend({ | |
| attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort', | |
| 'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today', | |
| 'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector', | |
| 'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker'], | |
| events: ['onOpen', 'onClose', 'onSelect', 'onStart'], | |
| attributeBindings: ['type', 'value', 'placeholder'], | |
| type: 'text', | |
| tagName: 'input', |
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
| App.PickADate = Ember.View.extend({ | |
| attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort', | |
| 'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today', | |
| 'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector', | |
| 'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker'], | |
| events: ['onOpen', 'onClose', 'onSelect', 'onStart'], | |
| tagName: 'input', | |
| classNames: 'pickadate', |
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
| PS1="\u:\W \[\e[1;33m\]⚡\[\e[0m\] " |
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
| task :stats => "test:statssetup" | |
| namespace :test do | |
| task :statssetup do | |
| require 'rails/code_statistics' | |
| ['controllers', 'helpers', 'models'] .each do |type| | |
| dir = "test/#{type}" | |
| ::STATS_DIRECTORIES << ["#{type} tests", dir] | |
| ::CodeStatistics::TEST_TYPES << "#{type} tests" | |
| end |