2011-06-20 19:05:12 +00:00
|
|
|
module Admin # TODO
|
2010-05-12 00:16:39 +00:00
|
|
|
class AssetsController < BaseController
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
sections 'assets'
|
|
|
|
|
2010-07-13 20:01:40 +00:00
|
|
|
respond_to :json, :only => :update
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-12 00:16:39 +00:00
|
|
|
def create
|
2011-06-20 19:05:12 +00:00
|
|
|
create! { admin_assets_url }
|
2010-05-12 00:16:39 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-05-12 00:16:39 +00:00
|
|
|
def update
|
2011-06-20 19:05:12 +00:00
|
|
|
update! { admin_assets_url }
|
2010-05-12 00:16:39 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
2010-05-12 00:16:39 +00:00
|
|
|
end
|
|
|
|
end
|