From b8264c55d1f8da42c3400bcd7d4098f62d48d314 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 6 Mar 2013 14:19:03 -0300 Subject: [PATCH] fixing article variable name --- db/schema.rb | 22 +++++++++++----------- plugins/comment_group_macro/lib/comment_group_macro_plugin.rb | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 63fe4de..be1f1b6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130111232201) do +ActiveRecord::Schema.define(:version => 20130117132943) do create_table "abuse_reports", :force => true do |t| t.integer "reporter_id" @@ -131,7 +131,6 @@ ActiveRecord::Schema.define(:version => 20130111232201) do t.integer "license_id" end - add_index "articles", ["name"], :name => "index_articles_on_name" add_index "articles", ["parent_id"], :name => "index_articles_on_parent_id" add_index "articles", ["profile_id"], :name => "index_articles_on_profile_id" add_index "articles", ["slug"], :name => "index_articles_on_slug" @@ -221,6 +220,7 @@ ActiveRecord::Schema.define(:version => 20130111232201) do t.string "source_type" t.string "user_agent" t.string "referrer" + t.integer "group_id" end add_index "comments", ["source_id", "spam"], :name => "index_comments_on_source_id_and_spam" @@ -264,11 +264,11 @@ ActiveRecord::Schema.define(:version => 20130111232201) do t.text "design_data" t.text "custom_header" t.text "custom_footer" - t.string "theme", :default => "default", :null => false + t.string "theme", :default => "default", :null => false t.text "terms_of_use_acceptance_text" t.datetime "created_at" t.datetime "updated_at" - t.integer "reports_lower_bound", :default => 0, :null => false + t.integer "reports_lower_bound", :default => 0, :null => false t.string "redirection_after_login", :default => "keep_on_same_page" t.text "signup_welcome_text" t.string "languages" @@ -428,7 +428,7 @@ ActiveRecord::Schema.define(:version => 20130111232201) do t.string "type" t.string "identifier" t.integer "environment_id" - t.boolean "active", :default => true + t.boolean "active", :default => true t.string "address" t.string "contact_phone" t.integer "home_page_id" @@ -439,21 +439,21 @@ ActiveRecord::Schema.define(:version => 20130111232201) do t.float "lat" t.float "lng" t.integer "geocode_precision" - t.boolean "enabled", :default => true - t.string "nickname", :limit => 16 + t.boolean "enabled", :default => true + t.string "nickname", :limit => 16 t.text "custom_header" t.text "custom_footer" t.string "theme" - t.boolean "public_profile", :default => true + t.boolean "public_profile", :default => true t.date "birth_date" t.integer "preferred_domain_id" t.datetime "updated_at" - t.boolean "visible", :default => true + t.boolean "visible", :default => true t.integer "image_id" - t.boolean "validated", :default => true + t.boolean "validated", :default => true t.string "cnpj" t.string "national_region_code" - t.boolean "is_template", :default => false + t.boolean "is_template", :default => false t.integer "template_id" t.string "redirection_after_login" end diff --git a/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb b/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb index 4f9132c..8186537 100644 --- a/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb +++ b/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb @@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin article = source count = article.group_comments.without_spam.in_group(group_id).count - lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => artile.profile }} + lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => article.profile }} end def macro_methods -- libgit2 0.21.2