arturo 0.2.3.2 → 0.2.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,21 +2,12 @@ require 'action_controller'
2
2
 
3
3
  module Arturo
4
4
 
5
- begin
6
- require 'application_controller'
7
- rescue LoadError
8
- # do nothing
9
- end
10
-
11
- base = Object.const_defined?(:ApplicationController) ? ApplicationController : ActionController::Base
12
-
13
5
  # Handles all Feature actions. Clients of the Arturo engine
14
6
  # should redefine Arturo::FeaturesController#permitted? to
15
7
  # return true only for users who are permitted to manage features.
16
- class FeaturesController < base
8
+ class FeaturesController < ApplicationController
17
9
  include Arturo::FeatureManagement
18
10
 
19
- unloadable
20
11
  before_filter :require_permission
21
12
  before_filter :load_feature, :only => [ :show, :edit, :update, :destroy ]
22
13
 
File without changes
@@ -0,0 +1,7 @@
1
+ if ActiveSupport::Dependencies.respond_to?(:autoload_once_paths)
2
+ # 2.3.9+
3
+ ActiveSupport::Dependencies.autoload_once_paths << lib_path
4
+ elsif ActiveSupport::Dependencies.respond_to?(:load_once_paths)
5
+ # 2.3.8-
6
+ ActiveSupport::Dependencies.load_once_paths << lib_path
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arturo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 87
4
+ hash: 85
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 3
10
- - 2
11
- version: 0.2.3.2
10
+ - 3
11
+ version: 0.2.3.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - James A. Rosen
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-01 00:00:00 -07:00
19
+ date: 2010-11-02 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -119,12 +119,9 @@ extra_rdoc_files: []
119
119
  files:
120
120
  - lib/arturo/controller_filters.rb
121
121
  - lib/arturo/engine.rb
122
- - lib/arturo/feature.rb
123
122
  - lib/arturo/feature_availability.rb
124
123
  - lib/arturo/feature_factories.rb
125
124
  - lib/arturo/feature_management.rb
126
- - lib/arturo/features_controller.rb
127
- - lib/arturo/features_helper.rb
128
125
  - lib/arturo/range_form_support.rb
129
126
  - lib/arturo/special_handling.rb
130
127
  - lib/arturo.rb
@@ -135,6 +132,9 @@ files:
135
132
  - lib/generators/arturo/templates/initializer.rb
136
133
  - lib/generators/arturo/templates/migration.rb
137
134
  - lib/generators/arturo/templates/semicolon.png
135
+ - app/controllers/arturo/features_controller.rb
136
+ - app/helpers/arturo/features_helper.rb
137
+ - app/models/arturo/feature.rb
138
138
  - app/views/arturo/features/_feature.html.erb
139
139
  - app/views/arturo/features/_form.html.erb
140
140
  - app/views/arturo/features/edit.html.erb
@@ -143,6 +143,7 @@ files:
143
143
  - app/views/arturo/features/new.html.erb
144
144
  - app/views/arturo/features/show.html.erb
145
145
  - config/locales/en.yml
146
+ - rails/init.rb
146
147
  - README.md
147
148
  - HISTORY.md
148
149
  has_rdoc: true