From 3a88903e7277712e83a2cc0359f11d80aa79121a Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Fri, 27 Jul 2007 02:03:29 +0000 Subject: [PATCH] ActionItem0: clean up the system --- app/views/home/_leo.rhtml | 9 --------- app/views/home/index.rhtml | 6 ------ db/migrate/002_create_profiles.rb | 6 +++--- test/fixtures/profiles.yml | 24 ++++++++++++------------ 4 files changed, 15 insertions(+), 30 deletions(-) delete mode 100644 app/views/home/_leo.rhtml diff --git a/app/views/home/_leo.rhtml b/app/views/home/_leo.rhtml deleted file mode 100644 index 76a3b67..0000000 --- a/app/views/home/_leo.rhtml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/views/home/index.rhtml b/app/views/home/index.rhtml index 66d854d..520c6fb 100644 --- a/app/views/home/index.rhtml +++ b/app/views/home/index.rhtml @@ -1,9 +1,3 @@ <%= flash[:notice] %> Start page of Virtual Community <%= @virtual_community.name %> - -Teste: -<%= @ft_config[:template].inspect %> -<%= @ft_config[:owner].template %> -caralho - diff --git a/db/migrate/002_create_profiles.rb b/db/migrate/002_create_profiles.rb index c1a628f..dfb108a 100644 --- a/db/migrate/002_create_profiles.rb +++ b/db/migrate/002_create_profiles.rb @@ -6,9 +6,9 @@ class CreateProfiles < ActiveRecord::Migration t.column :virtual_community_id, :integer t.column :profile_owner_id, :integer t.column :profile_owner_type, :string - t.column :template, :string, :default => "default" - t.column :theme, :string, :default => "default" - t.column :icon_theme, :string, :default => "default" + t.column :flexible_template_template, :string, :default => "default" + t.column :flexible_template_theme, :string, :default => "default" + t.column :flexible_template_icon_theme, :string, :default => "default" end end diff --git a/test/fixtures/profiles.yml b/test/fixtures/profiles.yml index 79cf425..1e79b9e 100644 --- a/test/fixtures/profiles.yml +++ b/test/fixtures/profiles.yml @@ -6,9 +6,9 @@ johndoe: virtual_community_id: 1 profile_owner_id: 1 profile_owner_type: 'User' - template: 'default' - icon_theme: 'default' - theme: 'default' + flexible_template_template: 'default' + flexible_template_icon_theme: 'default' + flexible_template_theme: 'default' joerandomhacker: id: 2 name: 'Joe Random Hacker' @@ -16,22 +16,22 @@ joerandomhacker: virtual_community_id: 1 profile_owner_id: 2 profile_owner_type: 'User' - template: 'simple' - icon_theme: 'simple' - theme: 'simple' + flexible_template_template: 'simple' + flexible_template_icon_theme: 'simple' + flexible_template_theme: 'simple' john_and_joe: id: 3 name: "John and Joe's Production Cooperative" identifier: john_and_joe virtual_community_id: 1 - template: 'simple' - icon_theme: 'simple' - theme: 'simple' + flexible_template_template: 'simple' + flexible_template_icon_theme: 'simple' + flexible_template_theme: 'simple' ze: id: 4 name: "Zé" identifier: ze virtual_community_id: 1 - template: 'default' - icon_theme: 'default' - theme: 'default' + flexible_template_template: 'default' + flexible_template_icon_theme: 'default' + flexible_template_theme: 'default' -- libgit2 0.21.2