diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb b/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb index f22ca785d3..b9f450cba3 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb @@ -1,4 +1,4 @@ -require 'active_support/core_ext/module/attribute_accessors' +require 'active_support/core_ext/class/attribute' require 'active_support/core_ext/string/inflections' require 'active_support/core_ext/file' require 'action_view/helpers/tag_helper' @@ -11,18 +11,25 @@ module ActionView module AssetTagHelper class AssetIncludeTag - include AssetIdCaching include CommonAssetHelpers + include AssetIdCaching - class_attribute :asset_name - class_attribute :extension + attr_reader :config, :controller - attr_reader :config, :controller, :expansions + class_attribute :expansions + self.expansions = { } - def initialize(config, controller, expansions) + def initialize(config, controller) @config = config @controller = controller - @expansions = expansions + end + + def asset_name + raise NotImplementedError + end + + def extension + raise NotImplementedError end def custom_dir |