beerify 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +11 -0
- data/Rakefile +34 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.svg +228 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/beerify/application.js +3 -0
- data/app/assets/javascripts/beerify/bootstrap.js +1991 -0
- data/app/assets/stylesheets/beerify/application.css +3 -0
- data/app/assets/stylesheets/beerify/bootstrap.css +5909 -0
- data/app/controllers/application_controller.rb +2 -0
- data/app/controllers/contacts_controller.rb +21 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/contacts_helper.rb +2 -0
- data/app/models/ability.rb +28 -0
- data/app/models/catalog.rb +11 -0
- data/app/models/ckeditor/asset.rb +7 -0
- data/app/models/ckeditor/attachment_file.rb +7 -0
- data/app/models/ckeditor/picture.rb +7 -0
- data/app/models/contact.rb +8 -0
- data/app/models/news.rb +11 -0
- data/app/models/photo.rb +5 -0
- data/app/models/product.rb +12 -0
- data/app/models/settings.rb +10 -0
- data/app/models/user.rb +10 -0
- data/app/models/users/admin.rb +4 -0
- data/app/models/users/customer.rb +5 -0
- data/app/models/users/sudoer.rb +4 -0
- data/app/uploaders/ckeditor_attachment_file_uploader.rb +35 -0
- data/app/uploaders/ckeditor_picture_uploader.rb +46 -0
- data/app/uploaders/photo_uploader.rb +22 -0
- data/app/views/contacts/_form.html.slim +5 -0
- data/app/views/contacts/new.html.slim +2 -0
- data/app/views/devise/confirmations/new.html.erb +14 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +5 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +4 -0
- data/app/views/devise/passwords/edit.html.erb +16 -0
- data/app/views/devise/passwords/new.html.erb +14 -0
- data/app/views/devise/registrations/edit.html.erb +20 -0
- data/app/views/devise/registrations/new.html.erb +16 -0
- data/app/views/devise/sessions/new.html.erb +14 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +14 -0
- data/app/views/layouts/beerify/application.html.erb +14 -0
- data/config/initializers/ckeditor.rb +21 -0
- data/config/initializers/devise.rb +254 -0
- data/config/initializers/kaminari.rb +3 -0
- data/config/initializers/rails_admin.rb +5 -0
- data/config/initializers/rails_admin/news_admin.rb +19 -0
- data/config/initializers/rails_admin/user_admin.rb +71 -0
- data/config/initializers/simple_form.rb +142 -0
- data/config/initializers/simple_form_bootstrap.rb +76 -0
- data/config/locales/attributes.en.yml +57 -0
- data/config/locales/attributes.fr.yml +57 -0
- data/config/locales/devise.en.yml +59 -0
- data/config/locales/devise.fr.yml +78 -0
- data/config/locales/devise.views.en.yml +59 -0
- data/config/locales/devise.views.fr.yml +51 -0
- data/config/locales/fr.yml +220 -0
- data/config/locales/main.en.yml +5 -0
- data/config/locales/main.fr.yml +5 -0
- data/config/locales/models.en.yml +30 -0
- data/config/locales/models.fr.yml +30 -0
- data/config/locales/rails_admin.fr.yml +129 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/routes.rb +8 -0
- data/config/settings/beerify/development.yml +2 -0
- data/config/settings/beerify/production.yml +2 -0
- data/config/settings/beerify/settings.yml +1 -0
- data/db/migrate/20130805210910_create_users.rb +12 -0
- data/db/migrate/20130805212414_add_devise_to_users.rb +34 -0
- data/db/migrate/20130819142757_create_catalogs.rb +15 -0
- data/db/migrate/20130826095103_create_photos.rb +12 -0
- data/db/migrate/20130902160901_create_products.rb +16 -0
- data/db/migrate/20130902162315_add_photos_to_product.rb +6 -0
- data/db/migrate/20130903083519_create_contacts.rb +11 -0
- data/db/migrate/20130903130542_create_news.rb +17 -0
- data/db/migrate/20130904000525_create_ckeditor_assets.rb +23 -0
- data/db/migrate/20130918132647_add_highlight_to_products.rb +5 -0
- data/lib/beerify.rb +4 -0
- data/lib/beerify/engine.rb +28 -0
- data/lib/beerify/version.rb +3 -0
- data/lib/tasks/populate.rake +66 -0
- data/spec/beerify/models/catalog_spec.rb +9 -0
- data/spec/beerify/models/contact_spec.rb +6 -0
- data/spec/beerify/models/news_spec.rb +7 -0
- data/spec/beerify/models/photo_spec.rb +5 -0
- data/spec/beerify/models/product_spec.rb +8 -0
- data/spec/beerify/models/user_spec.rb +4 -0
- data/spec/beerify/models/users/admin_spec.rb +5 -0
- data/spec/beerify/models/users/customer_spec.rb +5 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +11 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/db/migrate/20130904085929_create_users.beerify.rb +13 -0
- data/spec/dummy/db/migrate/20130904085930_add_devise_to_users.beerify.rb +35 -0
- data/spec/dummy/db/migrate/20130904085931_create_catalogs.beerify.rb +16 -0
- data/spec/dummy/db/migrate/20130904085932_create_photos.beerify.rb +13 -0
- data/spec/dummy/db/migrate/20130904085933_create_products.beerify.rb +17 -0
- data/spec/dummy/db/migrate/20130904085934_add_photos_to_product.beerify.rb +7 -0
- data/spec/dummy/db/migrate/20130904085935_create_contacts.beerify.rb +12 -0
- data/spec/dummy/db/migrate/20130906090417_create_news.beerify.rb +18 -0
- data/spec/dummy/db/migrate/20130906090418_create_ckeditor_assets.beerify.rb +24 -0
- data/spec/dummy/db/migrate/20130918132952_add_highlight_to_products.beerify.rb +6 -0
- data/spec/dummy/db/schema.rb +116 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +19 -0
- metadata +641 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
en:
|
|
2
|
+
activerecord:
|
|
3
|
+
models:
|
|
4
|
+
catalog:
|
|
5
|
+
one: 'Catalog'
|
|
6
|
+
other: 'Catalogs'
|
|
7
|
+
contact:
|
|
8
|
+
one: 'Contact'
|
|
9
|
+
other: 'Contacts'
|
|
10
|
+
news:
|
|
11
|
+
one: 'News'
|
|
12
|
+
other: 'News'
|
|
13
|
+
photo:
|
|
14
|
+
one: 'Photo'
|
|
15
|
+
other: 'Photos'
|
|
16
|
+
product:
|
|
17
|
+
one: 'Product'
|
|
18
|
+
other: 'Products'
|
|
19
|
+
users/admin:
|
|
20
|
+
one: 'Administrator'
|
|
21
|
+
other: 'Administrators'
|
|
22
|
+
users/customer:
|
|
23
|
+
one: 'Customer'
|
|
24
|
+
other: 'Customers'
|
|
25
|
+
users/sudoer:
|
|
26
|
+
one: 'Sudoer'
|
|
27
|
+
other: 'Sudoers'
|
|
28
|
+
user:
|
|
29
|
+
one: 'User'
|
|
30
|
+
other: 'Users'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
fr:
|
|
2
|
+
activerecord:
|
|
3
|
+
models:
|
|
4
|
+
catalog:
|
|
5
|
+
one: 'Catalogue'
|
|
6
|
+
other: 'Catalogues'
|
|
7
|
+
contact:
|
|
8
|
+
one: 'Contact'
|
|
9
|
+
other: 'Contacts'
|
|
10
|
+
news:
|
|
11
|
+
one: 'Actualité'
|
|
12
|
+
other: 'Actualités'
|
|
13
|
+
photo:
|
|
14
|
+
one: 'Photo'
|
|
15
|
+
other: 'Photos'
|
|
16
|
+
product:
|
|
17
|
+
one: 'Produit'
|
|
18
|
+
other: 'Produits'
|
|
19
|
+
users/admin:
|
|
20
|
+
one: 'Administrateur'
|
|
21
|
+
other: 'Administrateurs'
|
|
22
|
+
users/customer:
|
|
23
|
+
one: 'Client'
|
|
24
|
+
other: 'Clients'
|
|
25
|
+
users/sudoer:
|
|
26
|
+
one: 'Sudoer'
|
|
27
|
+
other: 'Sudoers'
|
|
28
|
+
user:
|
|
29
|
+
one: 'Utilisateur'
|
|
30
|
+
other: 'Utilisateurs'
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
fr:
|
|
2
|
+
admin:
|
|
3
|
+
home:
|
|
4
|
+
name: Home
|
|
5
|
+
pagination:
|
|
6
|
+
previous: "« Préc."
|
|
7
|
+
next: "Suiv. »"
|
|
8
|
+
truncate: "…"
|
|
9
|
+
misc:
|
|
10
|
+
search: "Rechercher"
|
|
11
|
+
filter: "Filtrer"
|
|
12
|
+
refresh: "Rafraîchir"
|
|
13
|
+
show_all: "Voir tout"
|
|
14
|
+
add_filter: "Ajouter un filtre..."
|
|
15
|
+
bulk_menu_title: "Objets sélectionnés..."
|
|
16
|
+
remove: "Enlever"
|
|
17
|
+
add_new: "Ajouter nouveau"
|
|
18
|
+
chosen: "%{name} choisis"
|
|
19
|
+
chose_all: "Prendre tout"
|
|
20
|
+
clear_all: "Tout enlever"
|
|
21
|
+
up: "Monter"
|
|
22
|
+
down: "Descendre"
|
|
23
|
+
navigation: "Navigation"
|
|
24
|
+
log_out: "Log out"
|
|
25
|
+
ago: ""
|
|
26
|
+
flash:
|
|
27
|
+
successful: "%{name} a été %{action} avec succès"
|
|
28
|
+
error: "%{name} n'a pas pu être %{action}"
|
|
29
|
+
noaction: "Aucune action !"
|
|
30
|
+
model_not_found: "Le model '%{model}' n'a pas été trouvé"
|
|
31
|
+
object_not_found: "%{model} avec id '%{id}' n'a pas été trouvé"
|
|
32
|
+
table_headers:
|
|
33
|
+
model_name: "Nom du modèle"
|
|
34
|
+
last_used: "Utilisé"
|
|
35
|
+
records: "Enregistrements"
|
|
36
|
+
username: "Utilisateur"
|
|
37
|
+
changes: "Changements"
|
|
38
|
+
created_at: "Date/Heure"
|
|
39
|
+
item: "Objet"
|
|
40
|
+
message: "Message"
|
|
41
|
+
actions:
|
|
42
|
+
dashboard:
|
|
43
|
+
title: "Administration"
|
|
44
|
+
menu: "Administration"
|
|
45
|
+
breadcrumb: "Administration"
|
|
46
|
+
index:
|
|
47
|
+
title: "Listing des %{model_label_plural}"
|
|
48
|
+
menu: "Liste"
|
|
49
|
+
breadcrumb: "%{model_label_plural}"
|
|
50
|
+
show:
|
|
51
|
+
title: "Détails pour %{model_label} '%{object_label}'"
|
|
52
|
+
menu: "Voir"
|
|
53
|
+
breadcrumb: "%{object_label}"
|
|
54
|
+
show_in_app:
|
|
55
|
+
menu: "Voir dans l'application"
|
|
56
|
+
new:
|
|
57
|
+
title: "Création d'un(e) %{model_label}"
|
|
58
|
+
menu: "Nouveau"
|
|
59
|
+
breadcrumb: "Nouveau"
|
|
60
|
+
link: "Ajouter un(e) %{model_label}"
|
|
61
|
+
done: "créé(e)"
|
|
62
|
+
edit:
|
|
63
|
+
title: "Édition %{model_label} '%{object_label}'"
|
|
64
|
+
menu: "Édition"
|
|
65
|
+
breadcrumb: "Édition"
|
|
66
|
+
link: "Éditer ce(tte) %{model_label}"
|
|
67
|
+
done: "modifié(e)"
|
|
68
|
+
delete:
|
|
69
|
+
title: "Suppression %{model_label} '%{object_label}'"
|
|
70
|
+
menu: "Supprimer"
|
|
71
|
+
breadcrumb: "Suppression"
|
|
72
|
+
link: "Supprimer '%{object_label}'"
|
|
73
|
+
done: "supprimé(e)"
|
|
74
|
+
bulk_delete:
|
|
75
|
+
title: "Suppression de %{model_label_plural}"
|
|
76
|
+
menu: "Délétion multiple"
|
|
77
|
+
breadcrumb: "Délétion multiple"
|
|
78
|
+
bulk_link: "Supprimer les %{model_label_plural} sélectionné(e)s"
|
|
79
|
+
export:
|
|
80
|
+
title: "Export de %{model_label_plural}"
|
|
81
|
+
menu: "Export"
|
|
82
|
+
breadcrumb: "Export"
|
|
83
|
+
link: "Export des %{model_label_plural} trouvé(e)s"
|
|
84
|
+
bulk_link: "Exporter les %{model_label_plural} sélectionné(e)s"
|
|
85
|
+
done: "exporté(e)s"
|
|
86
|
+
history_index:
|
|
87
|
+
title: "Historique des %{model_label_plural}"
|
|
88
|
+
menu: "Historique"
|
|
89
|
+
breadcrumb: "Historique"
|
|
90
|
+
history_show:
|
|
91
|
+
title: "Historique %{model_label} '%{object_label}'"
|
|
92
|
+
menu: "Historique"
|
|
93
|
+
breadcrumb: "Historique"
|
|
94
|
+
form:
|
|
95
|
+
new_model: "%{name} (nouveau)"
|
|
96
|
+
cancel: "Annuler"
|
|
97
|
+
basic_info: "Informations de base"
|
|
98
|
+
required: "Obligatoire"
|
|
99
|
+
optional: "Facultatif"
|
|
100
|
+
one_char: "caractère"
|
|
101
|
+
char_length_up_to: "longueur jusqu'à"
|
|
102
|
+
char_length_of: "longueur de"
|
|
103
|
+
save: "Enregistrer"
|
|
104
|
+
save_and_add_another: "Enregistrer et créer un(e) autre"
|
|
105
|
+
save_and_edit: "Enregistrer et re-modifier"
|
|
106
|
+
all_of_the_following_related_items_will_be_deleted: " ? Les objets suivants peuvent être affectés (supprimés ou orphelins) : "
|
|
107
|
+
are_you_sure_you_want_to_delete_the_object: "Êtes-vous sûr de vouloir supprimer cet(te) %{model_name}"
|
|
108
|
+
confirmation: "Oui, je suis sûr(e)"
|
|
109
|
+
delete_confirmation: "Confirmation de suppression"
|
|
110
|
+
bulk_delete: "Les objets suivants seront supprimés, ce qui pourrait supprimer ou rendre orpheline les dépendances affichées :"
|
|
111
|
+
export:
|
|
112
|
+
confirmation: "Exporter en %{name}"
|
|
113
|
+
select: "Sélectionner les champs à exporter"
|
|
114
|
+
fields_from: "Champs pour '%{name}'"
|
|
115
|
+
fields_from_associated: "Champs pour l'association '%{name}'"
|
|
116
|
+
display: "Afficher %{name} : %{type}"
|
|
117
|
+
options_for: "Options pour %{name}"
|
|
118
|
+
empty_value_for_associated_objects: "<vide>"
|
|
119
|
+
click_to_reverse_selection: 'Cliquer pour inverser la sélection'
|
|
120
|
+
csv:
|
|
121
|
+
header_for_root_methods: "%{name}" # 'model' is available
|
|
122
|
+
header_for_association_methods: "%{name} [%{association}]"
|
|
123
|
+
encoding_to: "Encoder en..."
|
|
124
|
+
encoding_to_help: "Choisir l'encodage de sortie. Laisser vide pour garder l'encodage d'entrée : (%{name})"
|
|
125
|
+
skip_header: "Pas d'en-tête"
|
|
126
|
+
skip_header_help: "Ne pas afficher d'en-tête (pas de champs de description)"
|
|
127
|
+
default_col_sep: ";"
|
|
128
|
+
col_sep: "Séparateur de colonnes"
|
|
129
|
+
col_sep_help: "Laisser vide pour utiliser la valeur par défaut recommandée pour votre système ('%{value}')"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
en:
|
|
2
|
+
simple_form:
|
|
3
|
+
"yes": 'Yes'
|
|
4
|
+
"no": 'No'
|
|
5
|
+
required:
|
|
6
|
+
text: 'required'
|
|
7
|
+
mark: '*'
|
|
8
|
+
# You can uncomment the line below if you need to overwrite the whole required html.
|
|
9
|
+
# When using html, text and mark won't be used.
|
|
10
|
+
# html: '<abbr title="required">*</abbr>'
|
|
11
|
+
error_notification:
|
|
12
|
+
default_message: "Please review the problems below:"
|
|
13
|
+
# Labels and hints examples
|
|
14
|
+
# labels:
|
|
15
|
+
# defaults:
|
|
16
|
+
# password: 'Password'
|
|
17
|
+
# user:
|
|
18
|
+
# new:
|
|
19
|
+
# email: 'E-mail to sign in.'
|
|
20
|
+
# edit:
|
|
21
|
+
# email: 'E-mail.'
|
|
22
|
+
# hints:
|
|
23
|
+
# defaults:
|
|
24
|
+
# username: 'User name to sign in.'
|
|
25
|
+
# password: 'No special characters, please.'
|
|
26
|
+
|
data/config/routes.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
defaults: &defaults
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
class AddDeviseToUsers < ActiveRecord::Migration
|
|
2
|
+
def self.up
|
|
3
|
+
change_table(:users) do |t|
|
|
4
|
+
## Database authenticatable
|
|
5
|
+
t.string :email, null: false, default: ""
|
|
6
|
+
t.string :encrypted_password, null: false, default: ""
|
|
7
|
+
|
|
8
|
+
## Recoverable
|
|
9
|
+
t.string :reset_password_token
|
|
10
|
+
t.datetime :reset_password_sent_at
|
|
11
|
+
|
|
12
|
+
## Rememberable
|
|
13
|
+
t.datetime :remember_created_at
|
|
14
|
+
|
|
15
|
+
## Trackable
|
|
16
|
+
t.integer :sign_in_count, default: 0
|
|
17
|
+
t.datetime :current_sign_in_at
|
|
18
|
+
t.datetime :last_sign_in_at
|
|
19
|
+
t.string :current_sign_in_ip
|
|
20
|
+
t.string :last_sign_in_ip
|
|
21
|
+
|
|
22
|
+
## Token authenticatable
|
|
23
|
+
t.string :authentication_token
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
add_index :users, :email, unique: true
|
|
27
|
+
add_index :users, :reset_password_token, unique: true
|
|
28
|
+
add_index :users, :authentication_token, unique: true
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def self.down
|
|
32
|
+
raise ActiveRecord::IrreversibleMigration
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class CreateCatalogs < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
create_table :catalogs do |t|
|
|
4
|
+
t.references :catalog
|
|
5
|
+
t.string :slug
|
|
6
|
+
t.string :title
|
|
7
|
+
t.text :description
|
|
8
|
+
|
|
9
|
+
t.timestamps
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
add_index :catalogs, :catalog_id
|
|
13
|
+
add_index :catalogs, :slug, unique: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class CreateProducts < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
create_table :products do |t|
|
|
4
|
+
t.decimal :price
|
|
5
|
+
t.references :catalog
|
|
6
|
+
t.string :title
|
|
7
|
+
t.string :slug
|
|
8
|
+
t.text :description
|
|
9
|
+
|
|
10
|
+
t.timestamps
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
add_index :products, :catalog_id
|
|
14
|
+
add_index :products, :slug, unique: true
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
class CreateNews < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
create_table :news do |t|
|
|
4
|
+
t.datetime :published_on
|
|
5
|
+
t.references :user
|
|
6
|
+
t.string :photo
|
|
7
|
+
t.string :slug
|
|
8
|
+
t.string :title
|
|
9
|
+
t.text :content
|
|
10
|
+
|
|
11
|
+
t.timestamps
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
add_index :news, :user_id
|
|
15
|
+
add_index :news, :slug, unique: true
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class CreateCkeditorAssets < ActiveRecord::Migration
|
|
2
|
+
def self.up
|
|
3
|
+
create_table :ckeditor_assets do |t|
|
|
4
|
+
t.integer :assetable_id
|
|
5
|
+
t.integer :data_file_size
|
|
6
|
+
t.integer :height
|
|
7
|
+
t.integer :width
|
|
8
|
+
t.string :assetable_type, limit: 30
|
|
9
|
+
t.string :data_content_type
|
|
10
|
+
t.string :data_file_name, null: false
|
|
11
|
+
t.string :type, limit: 30
|
|
12
|
+
|
|
13
|
+
t.timestamps
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
add_index 'ckeditor_assets', ['assetable_type', 'type', 'assetable_id'], name: 'idx_ckeditor_assetable_type'
|
|
17
|
+
add_index 'ckeditor_assets', ['assetable_type', 'assetable_id'], name: 'idx_ckeditor_assetable'
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.down
|
|
21
|
+
drop_table :ckeditor_assets
|
|
22
|
+
end
|
|
23
|
+
end
|
data/lib/beerify.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'devise'
|
|
2
|
+
|
|
3
|
+
module Beerify
|
|
4
|
+
class Engine < ::Rails::Engine
|
|
5
|
+
engine_name :beerify
|
|
6
|
+
|
|
7
|
+
require 'cancan'
|
|
8
|
+
require 'capistrano'
|
|
9
|
+
require 'capistrano-unicorn'
|
|
10
|
+
require 'carrierwave'
|
|
11
|
+
require 'ckeditor'
|
|
12
|
+
require 'friendly_id'
|
|
13
|
+
require 'meta_tags'
|
|
14
|
+
require 'mini_magick'
|
|
15
|
+
require 'rails_admin'
|
|
16
|
+
require 'sentencify'
|
|
17
|
+
require 'settingslogic'
|
|
18
|
+
require 'simple_form'
|
|
19
|
+
require 'slim'
|
|
20
|
+
require 'tire'
|
|
21
|
+
require 'validates'
|
|
22
|
+
require 'will_paginate'
|
|
23
|
+
require 'will_paginate-bootstrap'
|
|
24
|
+
|
|
25
|
+
config.i18n.default_locale = :fr
|
|
26
|
+
config.i18n.fallbacks = [:fr, :en]
|
|
27
|
+
end
|
|
28
|
+
end
|