Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Controller's classes are now inherited from Concen::ApplicationContro…

…ller
  • Loading branch information...
commit 219853d85b45894ec2a855fb932f6d155d337da8 1 parent ec85434
@steverandy authored
View
3  README.md
@@ -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
View
4 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
View
4 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
View
2  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
View
4 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
View
4 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
View
4 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.
View
4 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
View
3  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}
Please sign in to comment.
Something went wrong with that request. Please try again.