smarter_listing 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smarter_listing.rb +19 -1
- data/lib/smarter_listing/controller_extension.rb +42 -44
- data/lib/smarter_listing/helper.rb +7 -5
- data/lib/smarter_listing/version.rb +1 -1
- data/test/dummy/app/controllers/listings_controller.rb +5 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +3869 -0
- metadata +2 -3
- data/lib/smarter_listing/loader.rb +0 -25
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smarter_listing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Sprauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -76,7 +76,6 @@ files:
|
|
76
76
|
- lib/smarter_listing/controller_extension.rb
|
77
77
|
- lib/smarter_listing/engine.rb
|
78
78
|
- lib/smarter_listing/helper.rb
|
79
|
-
- lib/smarter_listing/loader.rb
|
80
79
|
- lib/smarter_listing/version.rb
|
81
80
|
- lib/tasks/smarter_listing_tasks.rake
|
82
81
|
- test/controllers/listings_controller_test.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'smart_listing'
|
2
|
-
require 'kaminari'
|
3
|
-
|
4
|
-
module SmarterListing
|
5
|
-
module Loader
|
6
|
-
def initialize
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.extended base
|
11
|
-
def smarter_listing(filter_parameter = :filter)
|
12
|
-
helper SmartListing::Helper
|
13
|
-
include SmartListing::Helper::ControllerExtensions
|
14
|
-
|
15
|
-
helper SmarterListing::Helper
|
16
|
-
include SmarterListing::ControllerExtension
|
17
|
-
|
18
|
-
instance_variable_set :@filter_parameter, filter_parameter
|
19
|
-
prepend Loader
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
ActionController::Base.extend SmarterListing::Loader
|