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
rvm gemset create refinery-bundler-pre --use | |
gem install bundler --pre | |
gem install refinerycms | |
refinerycms test_app | |
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 is an incomplete implementation. | |
module MongoMapper | |
module NestedAttributes | |
def self.included(base) | |
base.extend(ClassMethods) | |
base.send :include, InstanceMethods | |
end | |
module ClassMethods | |
def accepts_nested_attributes_for(*attr_names) |
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
######################################################################################################### | |
# I18n French translation for Devise (http://github.com/plataformatec/devise) | |
# I18n traduction française pour Devise | |
######################################################################################################### | |
fr: | |
errors: | |
messages: | |
not_found: "n'a pas été trouvé(e)" | |
already_confirmed: "a déjà été confirmé(e)" |
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
class AddAppelsCount < ActiveRecord::Migration | |
def self.up | |
models = %w(expo_types contextes) | |
models.each do |model| | |
add_column model, :appels_count, :integer, :default => 0 | |
klass = model.classify.constantize | |
klass.reset_column_information | |
klass.all.each do |instance| | |
klass.update_counters instance.id, :appels_count => instance.appels.length | |
end |
NewerOlder