This file contains hidden or 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
Index: app/helpers/users_helper.rb | |
=================================================================== | |
--- app/helpers/users_helper.rb (revision 3733) | |
+++ app/helpers/users_helper.rb (working copy) | |
@@ -45,6 +45,20 @@ | |
end | |
end | |
+ def change_status_options_for_select(user) | |
+ disabled = [] |
This file contains hidden or 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
# put this into the console started by | |
# RAILS_ENV=production script/console --sandbox | |
user = User.find_by_login("my_login") | |
Mailer.deliver_test(user) |
This file contains hidden or 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
Index: app/controllers/my_controller.rb | |
=================================================================== | |
--- app/controllers/my_controller.rb (revision 3739) | |
+++ app/controllers/my_controller.rb (working copy) | |
@@ -136,7 +136,7 @@ | |
block = params[:block].to_s.underscore | |
(render :nothing => true; return) unless block && (BLOCKS.keys.include? block) | |
@user = User.current | |
- layout = @user.pref[:my_page_layout] || {} | |
+ layout = @user.pref[:my_page_layout] || DEFAULT_LAYOUT.dup |
This file contains hidden or 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
RewriteEngine On | |
# See reverse rule in host.domain__https.conf | |
# Update accordingly! | |
RewriteRule ^/(login|users/edit|my/password)(/.*)?$ https://host.domain/$1$2 [L,QSA,R=301] |
This file contains hidden or 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
SELECT "issues"."id" AS t0_r0, "issues"."tracker_id" AS t0_r1, "issues"."project_id" AS t0_r2, "issues"."subject" AS t0_r3, "issues"."description" AS t0_r4, "issues"."due_date" AS t0_r5, "issues"."category_id" AS t0_r6, "issues"."status_id" AS t0_r7, "issues"."assigned_to_id" AS t0_r8, "issues"."priority_id" AS t0_r9, "issues"."fixed_version_id" AS t0_r10, "issues"."author_id" AS t0_r11, "issues"."lock_version" AS t0_r12, "issues"."created_on" AS t0_r13, "issues"."updated_on" AS t0_r14, "issues"."start_date" AS t0_r15, "issues"."done_ratio" AS t0_r16, "issues"."estimated_hours" AS t0_r17, "issues"."parent_id" AS t0_r18, "issues"."root_id" AS t0_r19, "issues"."lft" AS t0_r20, "issues"."rgt" AS t0_r21, "projects"."id" AS t1_r0, "projects"."name" AS t1_r1, "projects"."description" AS t1_r2, "projects"."homepage" AS t1_r3, "projects"."is_public" AS t1_r4, "projects"."parent_id" AS t1_r5, "projects"."created_on" AS t1_r6, "projects"."updated_on" AS t1_r7, "projects"."identifier" AS t1_r8, "projects"."status" AS t1 |
This file contains hidden or 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
Listen = +SOMEPORT | |
LoadModule = fail2ban | |
<User meineerde> | |
Pass = SUPER_SECRET_PASSWORD | |
Admin = true | |
Nick = meineerde | |
AltNick = meineerde_ | |
Ident = meineerde | |
RealName = Holger Just |
This file contains hidden or 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
# case-insensitive fall-over | |
def self.find_by_login(login) | |
# First look for an exact match | |
users = find(:all, :conditions => ["login = ? OR LOWER(login) = ?", login, login.to_s.downcase]) | |
users.find{|u| u.login == login} || users.find{|u| u.login.to_s.downcase == login.to_s.downcase} | |
end |
This file contains hidden or 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
sqlite> SELECT * from schema_migrations WHERE version LIKE '%redmine_checkout'; | |
20091208210439-redmine_checkout | |
20091220173312-redmine_checkout | |
20100118174556-redmine_checkout | |
20100118235845-redmine_checkout | |
20100118235909-redmine_checkout | |
20100203202320-redmine_checkout | |
20100426154202-redmine_checkout | |
20100512135418-redmine_checkout | |
20100609153630-redmine_checkout |
This file contains hidden or 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
CREATE TABLE repositories | |
( | |
id serial NOT NULL, | |
project_id integer NOT NULL DEFAULT 0, | |
url character varying(255) NOT NULL DEFAULT ''::character varying, | |
"login" character varying(60) DEFAULT ''::character varying, | |
"password" character varying(60) DEFAULT ''::character varying, | |
root_url character varying(255) DEFAULT ''::character varying, | |
"type" character varying(255), | |
checkout_settings text, |
This file contains hidden or 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
Index: app/models/change.rb | |
=================================================================== | |
--- app/models/change.rb (revision 3859) | |
+++ app/models/change.rb (working copy) | |
@@ -19,12 +19,13 @@ | |
belongs_to :changeset | |
validates_presence_of :changeset_id, :action, :path | |
+ before_save :init_path | |