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
CarrierWave.configure do |config| | |
if Rails.env.development? || Rails.env.test? | |
config.storage = :file | |
else | |
config.storage = :fog | |
config.fog_credentials = { | |
:provider => 'OpenStack', | |
:openstack_auth_url => 'https://auth.selcdn.ru/v1.0', | |
:openstack_username => Rails.application.secrets.openstack_username, | |
:openstack_api_key => Rails.application.secrets.openstack_api_key |
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
// include this code in your application, you don't need to call any initialization manually! | |
Ember.Application.initializer({ | |
name: "meta", | |
initialize: function(container, application) { | |
// helper function to get tag from dom | |
var _getTag = function(tagname, property, value) { | |
var tags = document.head.getElementsByTagName(tagname), | |
tag, |
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
require 'tire' | |
require 'active_support/core_ext/numeric' | |
require 'active_support/core_ext/time/zones' | |
# Tire.configure { logger STDERR, level: 'debug' } | |
class Time; DATE_FORMATS.update lucene: "%Y-%m-%dT%H:%M"; end | |
Tire.index 'venues' do |