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
username | password | authData | emailVerified | admin | avatar | company | coolrProfile | coverPhoto | facebookProfile | firstName | followingTeams | lastAdminReminder | lastName | linkedInProfile | linkedinId | locationName | lowercaseName | mobilePhone | phoneNumber | profileUrl | receivesPush | skype | tags | team | title | userStats | waadProfile | workEmail | workPhone |
---|
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
# uber-hacky dynamic collection names for MongoID models: | |
# | |
# class MyModel | |
# include Mongoid::PrefixableDocument # ...instead of Mongoid::Document | |
# include Mongoid::Timestamps | |
# | |
# field :foobar, :type => Integer | |
# | |
# def my_method; 123; end | |
# |
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
# this fixes a bug in MongoMapper/Paperclip in rails 3.1 https://github.com/jnunemaker/mongomapper/issues/293 | |
# config/initializers/mongo.rb | |
module MongoMapper | |
module Plugins | |
module EmbeddedCallbacks | |
module InstanceMethods | |
def run_callbacks(callback, opts = nil, &block) | |
embedded_docs = [] |
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
# Rails 3 - support for cookie across all subdomains and top level domain | |
# config/initializers/session_store.rb | |
Rails.application.config.session_store :cookie_store, :key => '_session_cookie', :domain => :all |