Skip to content
Browse files

Fixed problems found while using engine

  • Loading branch information...
1 parent 3df7b66 commit 8fd5c151b5015248ce2a10283d205b6f068b6aa7 @alsmola committed Sep 3, 2012
View
8 .gitignore
@@ -1,7 +1,7 @@
.DS_Store
.bundle
-db/*.sqlite3
-log/*.log
-tmp/**/*
-config/passwords/*
+test/dummy/db/*.sqlite3
+test/dummy/log/*
+test/dummy/tmp/**/*
+test/dummy/config/passwords/*
*.swp
View
1 Gemfile
@@ -10,7 +10,6 @@ group :assets do
gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
end
-gem 'jquery-rails'
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'browser'
gem 'geoip'
View
5 lib/nopassword/engine.rb
@@ -1,3 +1,7 @@
+require 'bcrypt'
+require 'browser'
+require 'passw3rd'
+require 'geoip'
module Nopassword
class Engine < ::Rails::Engine
isolate_namespace Nopassword
@@ -15,6 +19,7 @@ class Engine < ::Rails::Engine
initializer "load_helpers" do
ActionController::Base.send :include, CheckSession
+ ActionHelper::Base.send :include, ApplicationHelper
end
initializer "email_settings" do
View
7 test/dummy/app/helpers/application_helper.rb
@@ -1,9 +1,2 @@
module ApplicationHelper
- def friendly_time(time)
- time_ago_in_words(time) + " ago"
- end
-
- def browser_name(ua)
- Browser.new(:ua => ua).to_s.split(' ')[0].capitalize
- end
end
View
BIN test/dummy/db/development.sqlite3
Binary file not shown.
View
8,844 test/dummy/log/development.log
0 additions, 8,844 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 test/dummy/tmp/pids/server.pid
@@ -1 +0,0 @@
-49654

0 comments on commit 8fd5c15

Please sign in to comment.
Something went wrong with that request. Please try again.