Skip to content

Commit

Permalink
Controller's classes are now inherited from Concen::ApplicationContro…
Browse files Browse the repository at this point in the history
…ller
  • Loading branch information
steverandy committed Mar 1, 2012
1 parent ec85434 commit 219853d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 21 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -126,6 +126,9 @@ If you have used Concen for any of your websites and would like to be listed her

## Versions

- **0.2.8**:
- Controller's classes are now inherited from Concen::ApplicationController

- **0.2.7**:
- Better time formatting
- Show full name in user list
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/concen/grid_files_controller.rb
@@ -1,7 +1,5 @@
module Concen
class GridFilesController < ApplicationController
layout "concen/application"

class GridFilesController < Concen::ApplicationController
def new
@page = Page.find(params[:page_id])
@grid_file = @page.grid_files.build
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/concen/pages_controller.rb
@@ -1,7 +1,5 @@
module Concen
class PagesController < ApplicationController
layout "concen/application"

class PagesController < Concen::ApplicationController
before_filter :authenticate_concen_user

def index
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/concen/performances_controller.rb
@@ -1,5 +1,5 @@
module Concen
class PerformancesController < ApplicationController
class PerformancesController < Concen::ApplicationController
def show
@page_title = "Performance"
end
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/concen/sessions_controller.rb
@@ -1,7 +1,5 @@
module Concen
class SessionsController < ApplicationController
layout "concen/application"

class SessionsController < Concen::ApplicationController
def new
if User.all.any?
render
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/concen/statuses_controller.rb
@@ -1,7 +1,5 @@
module Concen
class StatusesController < ApplicationController
layout "concen/application"

class StatusesController < Concen::ApplicationController
before_filter :authenticate_concen_user

def show
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/concen/traffics_controller.rb
@@ -1,7 +1,5 @@
module Concen
class TrafficsController < ApplicationController
layout "concen/application"

class TrafficsController < Concen::ApplicationController
before_filter :authenticate_concen_user

# Supports OS X and Linux, require top command.
Expand Down
4 changes: 1 addition & 3 deletions app/controllers/concen/users_controller.rb
@@ -1,7 +1,5 @@
module Concen
class UsersController < ApplicationController
layout "concen/application"

class UsersController < Concen::ApplicationController
before_filter :authenticate_concen_user, :except => [:new, :edit, :update, :create, :new_reset_password, :reset_password]

def index
Expand Down
3 changes: 1 addition & 2 deletions app/controllers/concen/visits_controller.rb
@@ -1,8 +1,7 @@
require "domainatrix"

module Concen
class VisitsController < ApplicationController

class VisitsController < Concen::ApplicationController
def visit_recorder_js
if cookies[:visitor_id].blank?
cookies[:visitor_id] = {:value => SecureRandom.uuid, :expires => 20.years.from_now}
Expand Down

0 comments on commit 219853d

Please sign in to comment.