Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rvm use --create 1.9.3@adminsimple
rvm use --create 2.3.1@adminsimple
2 changes: 1 addition & 1 deletion .rvmrc.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rvm use --create 1.9.3@protoadmin
rvm use --create 2.3.1@adminsimple
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ The install generator puts a `adminsimple.rb` file into your `config/initializer
provide additional navigation as well providing the devise and simple_form configurations.


## Dependencies

We removed the [has_scope gem](https://github.com/plataformatec/has_scope) as an explicit dependency, but it can be a great tool to explicitly scope your models in admin.

We also removed inherited_resources, the behavior of which is now built into Rails through responders.


## License

Licensed under the [MIT License](http://creativecommons.org/licenses/MIT/)
Expand Down
4 changes: 1 addition & 3 deletions adminsimple.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ Gem::Specification.new do |s|
s.test_files = Dir["{spec}/**/*"]

# Runtime Dependencies
s.add_dependency 'railties', ['>= 3.2.5','< 5']
s.add_dependency 'railties', '>= 5.0.0'
s.add_dependency 'navigasmic', '>= 1.0.5'
s.add_dependency 'simple_form', '>= 2.1.0'
s.add_dependency 'inherited_resources', '>= 1.4.1'
s.add_dependency 'has_scope', '>= 0.6.0.rc'
s.add_dependency 'crummy'
end
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
*= require bootstrap
*/


@import bootstrap
// mixins
@import adminsimple/mixins/mixins

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/adminsimple/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Adminsimple::ApplicationController < Adminsimple.configuration.parent_cont

layout :layout

before_filter :authenticate!, :create_body_class
before_action :authenticate!, :create_body_class

protected

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/adminsimple/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Adminsimple::BaseController < Adminsimple::ApplicationController

respond_to :html, :js

append_before_filter :add_crumbs
append_before_action :add_crumbs

helper_method :collection_title, :resource_title, :resource_icon, :collection_action_path

Expand Down Expand Up @@ -49,7 +49,7 @@ def resource_icon
def add_crumbs
add_crumb(collection_title, collection_path)
end

def collection_action_path(action = nil, optional = nil)
arr = []
arr << action if action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Adminsimple::Devise::RegistrationsController < Devise::RegistrationsContro

layout :layout

before_filter :authenticate!, :add_crumbs
before_action :authenticate!, :add_crumbs

private

Expand Down
2 changes: 1 addition & 1 deletion lib/adminsimple.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'simple_form'
require 'navigasmic'
require 'crummy'
require 'inherited_resources'
require 'has_scope'
require 'inherited_resources'

require 'adminsimple/version'
require 'adminsimple/configuration'
Expand Down