Permalink
Browse files

Remove the sheet_restrictions alias for text filters

  • Loading branch information...
1 parent 262afc2 commit 043537853cfaf199c27b14159e05e513a0c5ad4e @nelstrom committed Mar 20, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 sheets_extension.rb
View
@@ -29,14 +29,14 @@ def activate
add_item "Javascripts", "/admin/scripts"
end
- ApplicationHelper.module_eval do
- def filter_options_for_select_with_sheet_restrictions(selected=nil)
- # sheet_filters = SheetsExtension.stylesheet_filters + SheetsExtension.javascript_filters
- # filters = TextFilter.descendants - sheet_filters
- options_for_select([[t('select.none'), '']] + filters.map { |s| s.filter_name }.sort, selected)
- end
- alias_method_chain :filter_options_for_select, :sheet_restrictions
- end
+ # ApplicationHelper.module_eval do
+ # def filter_options_for_select_with_sheet_restrictions(selected=nil)
+ # sheet_filters = SheetsExtension.stylesheet_filters + SheetsExtension.javascript_filters
+ # filters = TextFilter.descendants - sheet_filters
+ # options_for_select([[t('select.none'), '']] + filters.map { |s| s.filter_name }.sort, selected)
+ # end
+ # alias_method_chain :filter_options_for_select, :sheet_restrictions
+ # end
Page.class_eval do
def sheet?

0 comments on commit 0435378

Please sign in to comment.